changeset 2031:ebce0d5efac1 trunk

[svn] - don't leak the split URI vector after doing the vtable lookup
author nenolod
date Fri, 01 Dec 2006 23:29:36 -0800
parents f158696b050d
children 7aed5cf10141
files ChangeLog libaudacious/vfs.c
diffstat 2 files changed, 11 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Fri Dec 01 23:25:42 2006 -0800
+++ b/ChangeLog	Fri Dec 01 23:29:36 2006 -0800
@@ -1,3 +1,11 @@
+2006-12-02 07:25:42 +0000  William Pitcock <nenolod@nenolod.net>
+  revision [3063]
+  - touch audacious/.svn because gentoo's subversion eclass sucks
+  
+  trunk/autogen.sh |    4 ++++
+  1 file changed, 4 insertions(+)
+
+
 2006-12-02 07:18:07 +0000  William Pitcock <nenolod@nenolod.net>
   revision [3061]
   - remove softvolume.c, only the alsa plugin uses it so we will move it 
--- a/libaudacious/vfs.c	Fri Dec 01 23:25:42 2006 -0800
+++ b/libaudacious/vfs.c	Fri Dec 01 23:29:36 2006 -0800
@@ -78,6 +78,7 @@
     /* no transport vtable has been registered, bail. */
     if (vtable == NULL)
     {
+        g_strfreev(vec);
         return NULL;
     }
 
@@ -91,6 +92,8 @@
     file->uri = g_strdup(path);
     file->base = vtable;
 
+    g_strfreev(vec);
+
     return file;
 }