vaapiupload: fix memory leak in _init() function.

This commit is contained in:
Gwenole Beauchesne 2012-01-03 18:16:35 +01:00
parent 42fa974391
commit 12c85f69ff

View file

@ -358,6 +358,7 @@ gst_vaapiupload_init(GstVaapiUpload *upload, GstVaapiUploadClass *klass)
/* Override query on src pad */
srcpad = gst_element_get_static_pad(GST_ELEMENT(upload), "src");
gst_pad_set_query_function(srcpad, gst_vaapiupload_query);
g_object_unref(srcpad);
}
static gboolean