summaryrefslogtreecommitdiffstats
path: root/src/display/nr-style.cpp
diff options
context:
space:
mode:
authorKrzysztof Kosi??ski <tweenk.pl@gmail.com>2010-08-05 23:23:28 +0000
committerKrzysztof KosiƄski <tweenk.pl@gmail.com>2010-08-05 23:23:28 +0000
commit267b81d9fd0d1254a80b008c26237fbe4bd93610 (patch)
treec243149698673345ae8ae553bdcfbf305392a976 /src/display/nr-style.cpp
parentWholesale cruft removal part 5; completely remove RasterFont (diff)
downloadinkscape-267b81d9fd0d1254a80b008c26237fbe4bd93610.tar.gz
inkscape-267b81d9fd0d1254a80b008c26237fbe4bd93610.zip
Minor cleanups
(bzr r9508.1.51)
Diffstat (limited to 'src/display/nr-style.cpp')
-rw-r--r--src/display/nr-style.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/display/nr-style.cpp b/src/display/nr-style.cpp
index bf2f2d305..40366f5d3 100644
--- a/src/display/nr-style.cpp
+++ b/src/display/nr-style.cpp
@@ -55,8 +55,8 @@ NRStyle::NRStyle()
NRStyle::~NRStyle()
{
- cairo_pattern_destroy(fill_pattern);
- cairo_pattern_destroy(stroke_pattern);
+ if (fill_pattern) cairo_pattern_destroy(fill_pattern);
+ if (stroke_pattern) cairo_pattern_destroy(stroke_pattern);
if (dash) delete dash;
}
@@ -123,7 +123,7 @@ void NRStyle::set(SPStyle *style)
}
miter_limit = style->stroke_miterlimit.value;
- delete [] dash;
+ if (dash) delete [] dash;
n_dash = style->stroke_dash.n_dash;
if (n_dash != 0) {