diff options
| author | Maximilian Albert <maximilian.albert@gmail.com> | 2008-07-14 10:22:27 +0000 |
|---|---|---|
| committer | cilix42 <cilix42@users.sourceforge.net> | 2008-07-14 10:22:27 +0000 |
| commit | 1a0fcd98af5334f810752a7b5ad6269f2ed2ab25 (patch) | |
| tree | 31040f6a95b67c3d6fce1b245353f4e11c208092 /src/knot-holder-entity.cpp | |
| parent | Some improvements to my title/desc stuff of revision 18759 (see bug 171024). (diff) | |
| download | inkscape-1a0fcd98af5334f810752a7b5ad6269f2ed2ab25.tar.gz inkscape-1a0fcd98af5334f810752a7b5ad6269f2ed2ab25.zip | |
Enable simultaneous knotholder and nodepath
(bzr r6291)
Diffstat (limited to 'src/knot-holder-entity.cpp')
| -rw-r--r-- | src/knot-holder-entity.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
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 |
