diff --git a/modules/media/gtkgstsink.c b/modules/media/gtkgstsink.c index 906e0c9e92..aa3f8cdfa6 100644 --- a/modules/media/gtkgstsink.c +++ b/modules/media/gtkgstsink.c @@ -832,7 +832,7 @@ gtk_gst_sink_dispose (GObject *object) { GtkGstSink *self = GTK_GST_SINK (object); - g_clear_object (&self->color_state); + g_clear_pointer (&self->color_state, gdk_color_state_unref); g_clear_object (&self->paintable); g_clear_object (&self->gst_gdk_context); g_clear_object (&self->gst_display);