diff options
| author | Markus Engel <markus.engel@tum.de> | 2013-04-08 19:01:11 +0000 |
|---|---|---|
| committer | Markus Engel <markus.engel@tum.de> | 2013-04-08 19:01:11 +0000 |
| commit | 9fd15efa4ab3302f3f9d7c7473a5377af314021c (patch) | |
| tree | 61c838bd878be255d82f70d0dc8b2bb8411550b7 /src/sp-switch.cpp | |
| parent | Added exception to SPFactory / basic handling to SPObject. (diff) | |
| download | inkscape-9fd15efa4ab3302f3f9d7c7473a5377af314021c.tar.gz inkscape-9fd15efa4ab3302f3f9d7c7473a5377af314021c.zip | |
Reactivated independent reference counting in the SPObject tree.
(bzr r11608.1.88)
Diffstat (limited to 'src/sp-switch.cpp')
| -rw-r--r-- | src/sp-switch.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/sp-switch.cpp b/src/sp-switch.cpp index ec4d9c1f0..cc50a8fef 100644 --- a/src/sp-switch.cpp +++ b/src/sp-switch.cpp @@ -63,8 +63,10 @@ GSList *SPSwitch::_childList(bool add_ref, SPObject::Action action) { if (NULL == child) return NULL; - if (add_ref) - g_object_ref (G_OBJECT (child)); + if (add_ref) { + //g_object_ref (G_OBJECT (child)); + sp_object_ref(child); + } return g_slist_prepend (NULL, child); } |
