summaryrefslogtreecommitdiffstats
path: root/src/knotholder.cpp
diff options
context:
space:
mode:
authorJohan B. C. Engelen <jbc.engelen@swissonline.ch>2012-04-07 14:24:51 +0000
committerJohan B. C. Engelen <j.b.c.engelen@alumnus.utwente.nl>2012-04-07 14:24:51 +0000
commita239540f0ae3f19e8af2d85acdf12ad40563087a (patch)
treefa08868e3cdd2a23c5315f09e7daac4d991b414f /src/knotholder.cpp
parentcleanup knotholder code for LPEs (diff)
downloadinkscape-a239540f0ae3f19e8af2d85acdf12ad40563087a.tar.gz
inkscape-a239540f0ae3f19e8af2d85acdf12ad40563087a.zip
remove no longer needed knotholderentity complication
(bzr r11171)
Diffstat (limited to 'src/knotholder.cpp')
-rw-r--r--src/knotholder.cpp8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/knotholder.cpp b/src/knotholder.cpp
index 91013ad2e..513c02834 100644
--- a/src/knotholder.cpp
+++ b/src/knotholder.cpp
@@ -68,13 +68,7 @@ KnotHolder::~KnotHolder() {
g_object_unref(G_OBJECT(item));
for(std::list<KnotHolderEntity *>::iterator i = entity.begin(); i != entity.end(); ++i) {
KnotHolderEntity* e = (*i);
- if (e->isDeletable()) {
- delete (*i);
- } else {
- // we must not delete the entity (since it's attached to an LPE parameter),
- // but the handle should be destroyed
- g_object_unref(e->knot);
- }
+ delete (*i);
(*i) = NULL;
}
entity.clear(); // is this necessary?