diff --git a/gst-libs/gst/gl/gstglquery.c b/gst-libs/gst/gl/gstglquery.c index ff759255e0..45e6336420 100644 --- a/gst-libs/gst/gl/gstglquery.c +++ b/gst-libs/gst/gl/gstglquery.c @@ -156,8 +156,7 @@ gst_gl_query_unset (GstGLQuery * query) if (query->query_id) gl->DeleteQueries (1, &query->query_id); - if (query->context) - gst_object_unref (query->context); + gst_object_unref (query->context); } GstGLQuery *