codecs: h265picture: Don't leak pic_list GArray
authorSeungha Yang <seungha@centricular.com>
Thu, 11 Jun 2020 19:59:47 +0000 (04:59 +0900)
committerGStreamer Merge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Thu, 11 Jun 2020 23:42:47 +0000 (23:42 +0000)
Equivalent to the commit 7b8c071f9c4a675f6b53e373c346d9e1f866f818

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1337>

gst-libs/gst/codecs/gsth265picture.c

index a405e9e..0c7fb87 100644 (file)
@@ -171,6 +171,7 @@ gst_h265_dpb_free (GstH265Dpb * dpb)
   g_return_if_fail (dpb != NULL);
 
   gst_h265_dpb_clear (dpb);
+  g_array_unref (dpb->pic_list);
   g_free (dpb);
 }