commit 63e5272049922603e4cb764444021795ac535809
Author: Christophe Fergeau <[email protected]>
Date:   Fri Oct 9 20:59:25 2009 +0200

    fix 2 memory leaks in error cases

 src/itdb_itunesdb.c |    3 ++-
 src/itdb_tzinfo.c   |    1 +
 2 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/src/itdb_itunesdb.c b/src/itdb_itunesdb.c
index 2116197..9d9c3fe 100644
--- a/src/itdb_itunesdb.c
+++ b/src/itdb_itunesdb.c
@@ -481,7 +481,8 @@ gchar * itdb_resolve_path (const gchar *root,
     
   if(good_path && g_file_test(good_path,G_FILE_TEST_EXISTS))
     return good_path;
-          
+
+  g_free (good_path);
   return NULL;
 }
 
diff --git a/src/itdb_tzinfo.c b/src/itdb_tzinfo.c
index 49080c1..4da252d 100644
--- a/src/itdb_tzinfo.c
+++ b/src/itdb_tzinfo.c
@@ -279,6 +279,7 @@ G_GNUC_INTERNAL void itdb_device_set_timezone_info 
(Itdb_Device *device)
            /* We don't know how to get the timezone of this ipod model,
             * assume the computer timezone and the ipod timezone match
             */
+           g_free (prefs_path);
            return; 
     }
 

------------------------------------------------------------------------------
Return on Information:
Google Enterprise Search pays you back
Get the facts.
http://p.sf.net/sfu/google-dev2dev
_______________________________________________
gtkpod-cvs2 mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gtkpod-cvs2

Reply via email to