From 1a0fcd98af5334f810752a7b5ad6269f2ed2ab25 Mon Sep 17 00:00:00 2001 From: Maximilian Albert Date: Mon, 14 Jul 2008 10:22:27 +0000 Subject: Enable simultaneous knotholder and nodepath (bzr r6291) --- src/knot-holder-entity.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/knot-holder-entity.cpp') diff --git a/src/knot-holder-entity.cpp b/src/knot-holder-entity.cpp index a587a3af0..e2ae5f10e 100644 --- a/src/knot-holder-entity.cpp +++ b/src/knot-holder-entity.cpp @@ -56,7 +56,13 @@ KnotHolderEntity::create(SPDesktop *desktop, SPItem *item, KnotHolder *parent, c KnotHolderEntity::~KnotHolderEntity() { /* unref should call destroy */ - g_object_unref(knot); + if (knot) { + g_object_unref(knot); + } else { + // FIXME: This shouldn't occur. Perhaps it is caused by LPE PointParams being knotholder entities, too + // If so, it will likely be fixed with upcoming refactoring efforts. + g_return_if_fail(knot); + } } void -- cgit v1.2.3