summaryrefslogtreecommitdiffstats
path: root/src/knot.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/knot.cpp')
-rw-r--r--src/knot.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/knot.cpp b/src/knot.cpp
index fe99eb4e1..4da9f01ee 100644
--- a/src/knot.cpp
+++ b/src/knot.cpp
@@ -245,7 +245,11 @@ static void sp_knot_dispose(GObject *object)
for (gint i = 0; i < SP_KNOT_VISIBLE_STATES; i++) {
if (knot->cursor[i]) {
+#if GTK_CHECK_VERSION(3,0,0)
+ g_object_unref(knot->cursor[i]);
+#else
gdk_cursor_unref(knot->cursor[i]);
+#endif
knot->cursor[i] = NULL;
}
}