changeset 1989:cd45e7cd74ef trunk

[svn] - avoid double free
author yaz
date Wed, 22 Nov 2006 03:33:52 -0800
parents c97eb02a1aab
children 601660c1d02d
files ChangeLog audacious/input.c
diffstat 2 files changed, 11 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Tue Nov 21 11:56:37 2006 -0800
+++ b/ChangeLog	Wed Nov 22 03:33:52 2006 -0800
@@ -1,3 +1,11 @@
+2006-11-21 19:56:37 +0000  William Pitcock <nenolod@nenolod.net>
+  revision [2965]
+  - update russian translation
+  
+  trunk/po/ru.po | 2070 +--------------------------------------------------------
+  1 file changed, 40 insertions(+), 2030 deletions(-)
+
+
 2006-11-19 18:50:21 +0000  Jonathan Schleifer <js@h3c.de>
   revision [2963]
   Fixed broken Classic skin.
--- a/audacious/input.c	Tue Nov 21 11:56:37 2006 -0800
+++ b/audacious/input.c	Wed Nov 22 03:33:52 2006 -0800
@@ -462,7 +462,7 @@
     BmpTitleInput *input;
     GList *node;
     gchar *tmp = NULL, *ext;
-    gchar *filename_proxy;
+    gchar *filename_proxy = NULL;
     VFSFile *fd;
     gint ret = 1;
 
@@ -481,6 +481,7 @@
              (ip->is_our_file != NULL &&
               (ret = ip->is_our_file(filename_proxy)) > 0))) {
             g_free(filename_proxy);
+            filename_proxy = NULL;
             break;
         }
     }
@@ -518,6 +519,7 @@
     }
 
     g_free(filename_proxy);
+    filename_proxy = NULL;
 }
 
 TitleInput *