changeset 4098:fe0f7a72facd

Fix memory leak in input_stringify_disabled_list() (Bugzilla #25)
author Jussi Judin <jjudin+audacious@iki.fi>
date Wed, 19 Dec 2007 00:50:46 -0600
parents 96194518173c
children b3830c28397e
files src/audacious/input.c
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/audacious/input.c	Wed Dec 19 00:48:05 2007 -0600
+++ b/src/audacious/input.c	Wed Dec 19 00:50:46 2007 -0600
@@ -111,11 +111,13 @@
     MOWGLI_ITER_FOREACH(node, ip_data.input_list)
     {
         Plugin *plugin = (Plugin *) node->data;
-        gchar *filename = g_path_get_basename(plugin->filename);
+        gchar *filename;
 
         if (plugin->enabled)
             continue;
 
+        filename = g_path_get_basename(plugin->filename);
+
         if (list->len > 0)
             g_string_append(list, ":");