omxvideodec: fix memory leak in gst_omx_video_dec_allocate_output_buffers
authorChristian König <christian.koenig@amd.com>
Fri, 7 Mar 2014 16:12:24 +0000 (17:12 +0100)
committerSebastian Dröge <sebastian@centricular.com>
Sat, 8 Mar 2014 14:23:59 +0000 (15:23 +0100)
https://bugzilla.gnome.org/show_bug.cgi?id=725907

omx/gstomxvideodec.c

index 2a301401013767184b406b2bb73af716e3cca66b..2e660702a66b11944e4fad5f05edc7ce996b25d0 100644 (file)
@@ -1222,6 +1222,7 @@ gst_omx_video_dec_allocate_output_buffers (GstOMXVideoDec * self)
 
     add_videometa = gst_buffer_pool_config_has_option (config,
         GST_BUFFER_POOL_OPTION_VIDEO_META);
+    gst_structure_free (config);
 
 #if defined (USE_OMX_TARGET_RPI) && defined (HAVE_GST_EGL)
     eglimage = self->eglimage && (allocator