diff options
Diffstat (limited to 'src/sp-gradient.cpp')
| -rw-r--r-- | src/sp-gradient.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sp-gradient.cpp b/src/sp-gradient.cpp index 889151cf8..b0a0ae816 100644 --- a/src/sp-gradient.cpp +++ b/src/sp-gradient.cpp @@ -829,7 +829,7 @@ void CGradient::modified(guint flags) // FIXME: climb up the ladder of hrefs GSList *l = NULL; for (SPObject *child = object->firstChild() ; child; child = child->getNext() ) { - g_object_ref(G_OBJECT(child)); + sp_object_ref(child); l = g_slist_prepend(l, child); } l = g_slist_reverse(l); @@ -839,7 +839,7 @@ void CGradient::modified(guint flags) if (flags || (child->mflags & (SP_OBJECT_MODIFIED_FLAG | SP_OBJECT_CHILD_MODIFIED_FLAG))) { child->emitModified(flags); } - g_object_unref(G_OBJECT(child)); + sp_object_unref(child); } } |
