summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGwenole Beauchesne <gwenole.beauchesne@intel.com>2012-01-03 18:16:35 +0100
committerGwenole Beauchesne <gwenole.beauchesne@intel.com>2012-01-03 18:16:35 +0100
commit12c85f69ff98ebf50dc12629ac5e4d0611bb0c0e (patch)
tree808638fa056ff4aa58ceb05016282aaadaa5ebdf
parent42fa974391bb7f2e13615815cceda8e1a7f7b1b7 (diff)
vaapiupload: fix memory leak in _init() function.
-rw-r--r--gst/vaapi/gstvaapiupload.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gst/vaapi/gstvaapiupload.c b/gst/vaapi/gstvaapiupload.c
index 803b9072..410d62a7 100644
--- a/gst/vaapi/gstvaapiupload.c
+++ b/gst/vaapi/gstvaapiupload.c
@@ -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