iqa: fix leak of map_meta.data
authorMathieu Duponchelle <mathieu@centricular.com>
Fri, 16 Aug 2019 13:22:26 +0000 (15:22 +0200)
committerTim-Philipp Müller <tim@centricular.com>
Wed, 21 Aug 2019 15:00:40 +0000 (15:00 +0000)
ext/iqa/iqa.c

index f579240..dd9e4e1 100644 (file)
@@ -218,6 +218,7 @@ do_dssim (GstIqa * self, GstVideoFrame * ref, GstVideoFrame * cmp,
       dssim_structure, NULL);
   gst_structure_free (dssim_structure);
 
+  free (map_meta.data);
   g_free (ptrs);
   g_free (ptrs2);
   gst_buffer_unmap (ref->buffer, &ref_info);