Use g_object_unref instead of gdk_cursor_unref.

parent 43a67b73
......@@ -405,7 +405,7 @@ set_cursor_according_to_state (GtkTextView *view,
if (left_window != NULL)
gdk_window_set_cursor (left_window, cursor);
gdk_cursor_unref (cursor);
g_object_unref (cursor);
}
else
{
......@@ -418,7 +418,7 @@ set_cursor_according_to_state (GtkTextView *view,
if (left_window != NULL)
gdk_window_set_cursor (left_window, NULL);
gdk_cursor_unref (cursor);
g_object_unref (cursor);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment