From 4e11c343001a69660a5d84836975405a401be3e6 Mon Sep 17 00:00:00 2001 From: Jan Schmidt Date: Tue, 22 Apr 2008 00:18:52 +0000 Subject: gst/goom/: Free a bunch of stuff, and initialise things to fix leaks and valgrind warnings in the testsuite. Original commit message from CVS: * gst/goom/config_param.c: (goom_plugin_parameters_free): * gst/goom/convolve_fx.c: (convolve_init), (convolve_free): * gst/goom/filters.c: (zoomFilterVisualFXWrapper_free): * gst/goom/flying_stars_fx.c: (fs_free): * gst/goom/goom_config_param.h: * gst/goom/goom_core.c: (goom_init), (goom_close): * gst/goom/goom_plugin_info.h: * gst/goom/gstgoom.c: (gst_goom_finalize): * gst/goom/lines.c: (goom_lines_free): * gst/goom/plugin_info.c: (plugin_info_init), (plugin_info_free): * gst/goom/surf3d.c: (grid3d_free): * gst/goom/surf3d.h: * gst/goom/tentacle3d.c: (tentacle_free): Free a bunch of stuff, and initialise things to fix leaks and valgrind warnings in the testsuite. Fixes: #529268 --- gst/goom/filters.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'gst/goom/filters.c') diff --git a/gst/goom/filters.c b/gst/goom/filters.c index 822d4a1c..3014c352 100644 --- a/gst/goom/filters.c +++ b/gst/goom/filters.c @@ -793,6 +793,19 @@ zoomFilterVisualFXWrapper_init (struct _VISUAL_FX *_this, PluginInfo * info) static void zoomFilterVisualFXWrapper_free (struct _VISUAL_FX *_this) { + ZoomFilterFXWrapperData *data = (ZoomFilterFXWrapperData *) _this->fx_data; + + if (data->freebrutT) + free (data->freebrutT); + if (data->freebrutS) + free (data->freebrutS); + if (data->freebrutD) + free (data->freebrutD); + if (data->firedec) + free (data->firedec); + + goom_plugin_parameters_free (_this->params); + free (_this->fx_data); } -- cgit