diff --git a/src/box3d-context.cpp b/src/box3d-context.cpp
index c1af593d4f617b4ca437c85e23633a2d1bd26a44..e5acaba1f1b1d1bbb49b4a7b9ee60ce74c13ccdf 100644 (file)
--- a/src/box3d-context.cpp
+++ b/src/box3d-context.cpp
}
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;
}