From a2d121cf9a6f964c28ed859c1471c7ce444b4685 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Thu, 29 Sep 2022 14:34:31 +0300 Subject: [PATCH] gaussblur: Fix memory leak when setting caps multiple times Part-of: --- subprojects/gst-plugins-bad/gst/gaudieffects/gstgaussblur.c | 1 + 1 file changed, 1 insertion(+) diff --git a/subprojects/gst-plugins-bad/gst/gaudieffects/gstgaussblur.c b/subprojects/gst-plugins-bad/gst/gaudieffects/gstgaussblur.c index 1c274c8141..b6052070e5 100644 --- a/subprojects/gst-plugins-bad/gst/gaudieffects/gstgaussblur.c +++ b/subprojects/gst-plugins-bad/gst/gaudieffects/gstgaussblur.c @@ -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;