Permalink
Browse files

fix memory leaks on static plugin initialization

git-svn-id: http://svn.metadecks.org/libremix/trunk@714 e2d53364-18fc-0310-981e-b60a84739af0
  • Loading branch information...
1 parent 355660b commit 674fd5bbdc3ca506e3336860d19ffa2a2661779d conrad committed Apr 23, 2010
Showing with 4 additions and 2 deletions.
  1. +2 −2 src/libremix/remix_context.c
  2. +2 −0 src/libremix/remix_plugin.c
@@ -50,8 +50,8 @@ remix_context_destroy (RemixEnv * env)
world->plugins = cd_list_destroy_with (env, world->plugins, remix_plugin_destroy);
remix_plugin_defaults_unload (env);
- /* TODO: remix_destroy_list (env, world->plugins); */
- /* TODO: remix_destroy_list (env, world->bases); */
+ //world->bases = cd_list_destroy_with (env, world->bases, remix_destroy);
+
remix_channelset_defaults_destroy (env);
remix_free (ctx);
remix_free (world);
@@ -142,6 +142,8 @@ remix_plugin_defaults_initialise (RemixEnv * env)
plugins = cd_list_join (env, plugins, remix_plugin_initialise_dynamic (env));
cd_list_apply (env, plugins, (CDFunc)_remix_register_plugin);
+
+ cd_list_free (env, plugins);
}
static int

0 comments on commit 674fd5b

Please sign in to comment.