summaryrefslogtreecommitdiffstats
path: root/gst/goom/goom_core.c
diff options
context:
space:
mode:
authorJan Schmidt <thaytan@mad.scientist.com>2008-04-22 00:18:52 +0000
committerJan Schmidt <thaytan@mad.scientist.com>2008-04-22 00:18:52 +0000
commit4e11c343001a69660a5d84836975405a401be3e6 (patch)
treea960e7899d060fc9efc3ef18b46080bbe951499c /gst/goom/goom_core.c
parentd2af0c69a161ff7bc9acabec4ecb3fa665dbf66e (diff)
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
Diffstat (limited to 'gst/goom/goom_core.c')
-rw-r--r--gst/goom/goom_core.c19
1 files changed, 10 insertions, 9 deletions
diff --git a/gst/goom/goom_core.c b/gst/goom/goom_core.c
index 5b222ab9..5bc64b6d 100644
--- a/gst/goom/goom_core.c
+++ b/gst/goom/goom_core.c
@@ -64,6 +64,15 @@ goom_init (guint32 resx, guint32 resy)
plugin_info_init (goomInfo, 4);
+ goomInfo->screen.width = resx;
+ goomInfo->screen.height = resy;
+ goomInfo->screen.size = resx * resy;
+
+ init_buffers (goomInfo, goomInfo->screen.size);
+ goomInfo->gRandom = goom_random_init ((uintptr_t) goomInfo->pixel);
+
+ goomInfo->cycle = 0;
+
goomInfo->star_fx = flying_star_create ();
goomInfo->star_fx.init (&goomInfo->star_fx, goomInfo);
@@ -81,15 +90,6 @@ goom_init (guint32 resx, guint32 resy)
plugin_info_add_visual (goomInfo, 2, &goomInfo->star_fx);
plugin_info_add_visual (goomInfo, 3, &goomInfo->convolve_fx);
- goomInfo->screen.width = resx;
- goomInfo->screen.height = resy;
- goomInfo->screen.size = resx * resy;
-
- init_buffers (goomInfo, goomInfo->screen.size);
- goomInfo->gRandom = goom_random_init ((uintptr_t) goomInfo->pixel);
-
- goomInfo->cycle = 0;
-
goomInfo->ifs_fx = ifs_visualfx_create ();
goomInfo->ifs_fx.init (&goomInfo->ifs_fx, goomInfo);
@@ -782,6 +782,7 @@ goom_close (PluginInfo * goomInfo)
goomInfo->tentacles_fx.free (&goomInfo->tentacles_fx);
goomInfo->zoomFilter_fx.free (&goomInfo->zoomFilter_fx);
+ plugin_info_free (goomInfo);
free (goomInfo);
}