summaryrefslogtreecommitdiffstats
path: root/src/gradient-drag.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gradient-drag.cpp')
-rw-r--r--src/gradient-drag.cpp2
1 files changed, 2 insertions, 0 deletions
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;