diff --git a/gdk/broadway/gdkwindow-broadway.c b/gdk/broadway/gdkwindow-broadway.c index ba51e1c322..acebcb9d09 100644 --- a/gdk/broadway/gdkwindow-broadway.c +++ b/gdk/broadway/gdkwindow-broadway.c @@ -257,7 +257,7 @@ gdk_window_impl_broadway_init (GdkWindowImplBroadway *impl) { impl->toplevel_window_type = -1; impl->device_cursor = g_hash_table_new_full (NULL, NULL, NULL, - (GDestroyNotify) gdk_cursor_unref); + (GDestroyNotify) g_object_unref); } static void @@ -286,7 +286,7 @@ gdk_window_impl_broadway_finalize (GObject *object) g_hash_table_remove (broadway_display->id_ht, GINT_TO_POINTER(impl->id)); if (impl->cursor) - gdk_cursor_unref (impl->cursor); + g_object_unref (impl->cursor); g_hash_table_destroy (impl->device_cursor); diff --git a/gdk/wayland/gdkwindow-wayland.c b/gdk/wayland/gdkwindow-wayland.c index b2be78b34d..243c1ff846 100644 --- a/gdk/wayland/gdkwindow-wayland.c +++ b/gdk/wayland/gdkwindow-wayland.c @@ -360,7 +360,7 @@ gdk_window_impl_wayland_finalize (GObject *object) impl = GDK_WINDOW_IMPL_WAYLAND (object); if (impl->cursor) - gdk_cursor_unref (impl->cursor); + g_object_unref (impl->cursor); if (impl->server_surface) cairo_surface_destroy (impl->server_surface); diff --git a/gdk/x11/gdkcursor-x11.c b/gdk/x11/gdkcursor-x11.c index e379748a01..5a12ef06c1 100644 --- a/gdk/x11/gdkcursor-x11.c +++ b/gdk/x11/gdkcursor-x11.c @@ -152,7 +152,7 @@ _gdk_x11_cursor_display_finalize (GdkDisplay *display) if (gdk_cursor_get_display (GDK_CURSOR (cursor)) == display) { GSList* olditem; - gdk_cursor_unref ((GdkCursor*) cursor); + g_object_unref ((GdkCursor*) cursor); /* Remove this item from the list */ *(itemp) = item->next; olditem = item; diff --git a/gdk/x11/gdkwindow-x11.c b/gdk/x11/gdkwindow-x11.c index 250ac41475..959eea0428 100644 --- a/gdk/x11/gdkwindow-x11.c +++ b/gdk/x11/gdkwindow-x11.c @@ -273,7 +273,7 @@ gdk_window_impl_x11_finalize (GObject *object) g_free (impl->toplevel); if (impl->cursor) - gdk_cursor_unref (impl->cursor); + g_object_unref (impl->cursor); g_hash_table_destroy (impl->device_cursor);