summaryrefslogtreecommitdiffstats
path: root/src/sp-switch.cpp
diff options
context:
space:
mode:
authorMarkus Engel <markus.engel@tum.de>2013-11-12 00:51:18 +0000
committerMarkus Engel <markus.engel@tum.de>2013-11-12 00:51:18 +0000
commitf8a064e45c3d5571d27bbda9ffcfeacd22398b49 (patch)
tree723cfa249e68bc7989bf4e3e59fc92f305aef718 /src/sp-switch.cpp
parentremoved recursion to avoid problems on big documents (diff)
downloadinkscape-f8a064e45c3d5571d27bbda9ffcfeacd22398b49.tar.gz
inkscape-f8a064e45c3d5571d27bbda9ffcfeacd22398b49.zip
Fix bug in SPSwitch.
Fixed bugs: - https://launchpad.net/bugs/1249862 (bzr r12794)
Diffstat (limited to 'src/sp-switch.cpp')
-rw-r--r--src/sp-switch.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/sp-switch.cpp b/src/sp-switch.cpp
index 5c88d7af8..b4841c0d0 100644
--- a/src/sp-switch.cpp
+++ b/src/sp-switch.cpp
@@ -40,6 +40,7 @@ SPSwitch::SPSwitch() : SPGroup() {
}
SPSwitch::~SPSwitch() {
+ _releaseLastItem(_cached_item);
}
SPObject *SPSwitch::_evaluateFirst() {