glupload: fix some memory leaks

https://bugzilla.gnome.org/show_bug.cgi?id=741943
This commit is contained in:
Nicola Murino 2014-12-25 22:59:42 +01:00 committed by Tim-Philipp Müller
parent bef3f020a6
commit 209fbd950f

View file

@ -292,6 +292,7 @@ _egl_image_upload_release (gpointer impl, GstBuffer * buffer)
static void static void
_egl_image_upload_free (gpointer impl) _egl_image_upload_free (gpointer impl)
{ {
g_free (impl);
} }
static UploadMethod _egl_image_upload = { static UploadMethod _egl_image_upload = {
@ -443,6 +444,7 @@ _upload_meta_upload_free (gpointer impl)
gst_gl_context_del_texture (upload->upload->context, gst_gl_context_del_texture (upload->upload->context,
&upload->texture_ids[i]); &upload->texture_ids[i]);
} }
g_free (upload);
} }
static UploadMethod _upload_meta_upload = { static UploadMethod _upload_meta_upload = {
@ -545,6 +547,7 @@ _raw_data_upload_free (gpointer impl)
if (raw->in_tex[i]) if (raw->in_tex[i])
gst_memory_unref ((GstMemory *) raw->in_tex[i]); gst_memory_unref ((GstMemory *) raw->in_tex[i]);
} }
g_free (raw);
} }
static UploadMethod _raw_data_upload = { static UploadMethod _raw_data_upload = {