From 67d61b662f9c7f8cd39ea78335efb709bade4549 Mon Sep 17 00:00:00 2001 From: Marc Jeanmougin Date: Sat, 5 Oct 2019 14:19:04 +0200 Subject: Fix various minor code problems --- src/gradient-drag.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/gradient-drag.cpp') diff --git a/src/gradient-drag.cpp b/src/gradient-drag.cpp index 47b032c2a..71ae65f50 100644 --- a/src/gradient-drag.cpp +++ b/src/gradient-drag.cpp @@ -1444,6 +1444,8 @@ GrDragger::moveMeshHandles ( Geom::Point pc_old, MeshNodeOperation op ) */ void GrDragger::updateTip() { + g_return_if_fail(this->knot != nullptr); + if (this->knot && this->knot->tip) { g_free (this->knot->tip); this->knot->tip = nullptr; -- cgit v1.2.3