mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-23 00:36:51 +00:00
gaussblur: Fix memory leak when setting caps multiple times
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3091>
This commit is contained in:
parent
0c83ddcdf7
commit
a2d121cf9a
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue