Code

remove extra unref; now ref/unref is done by show/hide; this used to stop this arenai...
[inkscape.git] / src / sp-mask.cpp
index c6febeb40280c9204a5d6d48b969e48be68b5958..49a40f4caf3cb4b874932481d391ed8f2cf15a16 100644 (file)
@@ -186,7 +186,6 @@ sp_mask_child_added (SPObject *object, Inkscape::XML::Node *child, Inkscape::XML
                                                               SP_ITEM_REFERENCE_FLAGS);
                        if (ac) {
                                nr_arena_item_add_child (v->arenaitem, ac, NULL);
-                               nr_arena_item_unref (ac);
                        }
                }
        }
@@ -318,7 +317,6 @@ sp_mask_show (SPMask *mask, NRArena *arena, unsigned int key)
                        if (ac) {
                                /* The order is not important in mask */
                                nr_arena_item_add_child (ai, ac, NULL);
-                               nr_arena_item_unref (ac);
                        }
                }
        }