summaryrefslogtreecommitdiffstats
path: root/src/box3d-context.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/box3d-context.cpp')
-rw-r--r--src/box3d-context.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/box3d-context.cpp b/src/box3d-context.cpp
index c1af593d4..e5acaba1f 100644
--- a/src/box3d-context.cpp
+++ b/src/box3d-context.cpp
@@ -141,7 +141,7 @@ static void sp_box3d_context_dispose(GObject *object)
}
if (ec->shape_knot_holder) {
- sp_knot_holder_destroy(ec->shape_knot_holder);
+ delete ec->shape_knot_holder;
ec->shape_knot_holder = NULL;
}
@@ -176,7 +176,7 @@ static void sp_box3d_context_selection_changed(Inkscape::Selection *selection, g
SPEventContext *ec = SP_EVENT_CONTEXT(bc);
if (ec->shape_knot_holder) { // destroy knotholder
- sp_knot_holder_destroy(ec->shape_knot_holder);
+ delete ec->shape_knot_holder;
ec->shape_knot_holder = NULL;
}