diff options
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); } |
