summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorbuliabyak <>2013-09-28 23:58:11 +0000
committerbuliabyak <>2013-09-28 23:58:11 +0000
commitbf4e68d81307463eea90914566f6d6611688bb04 (patch)
treed244c38ab18e49da0928e1444cb6719bebec34c9 /src
parentmemleak fix (diff)
downloadinkscape-bf4e68d81307463eea90914566f6d6611688bb04.tar.gz
inkscape-bf4e68d81307463eea90914566f6d6611688bb04.zip
clear paints on delete to release reffed paintservers, fixes leaking of gradients
(bzr r12623)
Diffstat (limited to 'src')
-rw-r--r--src/display/nr-style.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/display/nr-style.cpp b/src/display/nr-style.cpp
index cd7e9575f..317f38635 100644
--- a/src/display/nr-style.cpp
+++ b/src/display/nr-style.cpp
@@ -77,6 +77,8 @@ NRStyle::~NRStyle()
if (dash){
delete [] dash;
}
+ fill.clear();
+ stroke.clear();
}
void NRStyle::set(SPStyle *style)