From: Nicola Murino Date: Thu, 25 Dec 2014 21:59:42 +0000 (+0100) Subject: glupload: fix some memory leaks X-Git-Tag: 1.19.3~507^2~9592 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3c6d7757664aab89b18f497e1f675509e482780d;p=platform%2Fupstream%2Fgstreamer.git glupload: fix some memory leaks https://bugzilla.gnome.org/show_bug.cgi?id=741943 --- diff --git a/gst-libs/gst/gl/gstglupload.c b/gst-libs/gst/gl/gstglupload.c index 7fbf93c..0e85e6c 100644 --- a/gst-libs/gst/gl/gstglupload.c +++ b/gst-libs/gst/gl/gstglupload.c @@ -292,6 +292,7 @@ _egl_image_upload_release (gpointer impl, GstBuffer * buffer) static void _egl_image_upload_free (gpointer impl) { + g_free (impl); } static UploadMethod _egl_image_upload = { @@ -443,6 +444,7 @@ _upload_meta_upload_free (gpointer impl) gst_gl_context_del_texture (upload->upload->context, &upload->texture_ids[i]); } + g_free (upload); } static UploadMethod _upload_meta_upload = { @@ -545,6 +547,7 @@ _raw_data_upload_free (gpointer impl) if (raw->in_tex[i]) gst_memory_unref ((GstMemory *) raw->in_tex[i]); } + g_free (raw); } static UploadMethod _raw_data_upload = {