diff options
| author | bulia byak <buliabyak@gmail.com> | 2008-09-20 23:37:34 +0000 |
|---|---|---|
| committer | buliabyak <buliabyak@users.sourceforge.net> | 2008-09-20 23:37:34 +0000 |
| commit | fab52ebd9467ef63f3a0c5ed9c4ab3f379c88b79 (patch) | |
| tree | 6b09bf6c1cdf41d0b7d928a038605f487ee43a62 /src/ui/context-menu.cpp | |
| parent | fix leak and potential crash by disconnecting on delete (diff) | |
| download | inkscape-fab52ebd9467ef63f3a0c5ed9c4ab3f379c88b79.tar.gz inkscape-fab52ebd9467ef63f3a0c5ed9c4ab3f379c88b79.zip | |
release reprs properly
(bzr r6855)
Diffstat (limited to 'src/ui/context-menu.cpp')
| -rw-r--r-- | src/ui/context-menu.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/ui/context-menu.cpp b/src/ui/context-menu.cpp index 51b4b3f43..aa93ffed9 100644 --- a/src/ui/context-menu.cpp +++ b/src/ui/context-menu.cpp @@ -173,6 +173,10 @@ sp_item_create_link(GtkMenuItem *menuitem, SPItem *item) SP_OBJECT(item)->deleteObject(false); repr->addChild(child, NULL); child->setAttribute("id", id); + + Inkscape::GC::release(repr); + Inkscape::GC::release(child); + sp_document_done(SP_OBJECT_DOCUMENT(object), SP_VERB_NONE, _("Create link")); |
