gaussblur: Fix memory leak when setting caps multiple times
authorSebastian Dröge <sebastian@centricular.com>
Thu, 29 Sep 2022 11:34:31 +0000 (14:34 +0300)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Thu, 29 Sep 2022 22:34:37 +0000 (22:34 +0000)
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3091>

subprojects/gst-plugins-bad/gst/gaudieffects/gstgaussblur.c

index 1c274c8..b605207 100644 (file)
@@ -172,6 +172,7 @@ gst_gaussianblur_set_info (GstVideoFilter * filter, GstCaps * incaps,
   /* get stride */
   gb->stride = GST_VIDEO_INFO_COMP_STRIDE (in_info, 0);
   n_elems = gb->stride * gb->height;
+  g_free (gb->tempim);
   gb->tempim = g_malloc (sizeof (gfloat) * n_elems);
 
   return TRUE;