Revision: 2084
          http://gtkpod.svn.sourceforge.net/gtkpod/?rev=2084&view=rev
Author:   jcsjcs
Date:     2008-08-03 02:59:01 +0000 (Sun, 03 Aug 2008)

Log Message:
-----------
        * src/display_itdb.c (gp_replace_itdb): fix memory leak. Thanks to
          Andrea.

Modified Paths:
--------------
    gtkpod/trunk/ChangeLog
    gtkpod/trunk/src/display_itdb.c
    gtkpod/trunk/src/display_playlists.c

Modified: gtkpod/trunk/ChangeLog
===================================================================
--- gtkpod/trunk/ChangeLog      2008-08-03 02:55:51 UTC (rev 2083)
+++ gtkpod/trunk/ChangeLog      2008-08-03 02:59:01 UTC (rev 2084)
@@ -1,6 +1,11 @@
+2008-0-03 Jorg Schuler <jcsjcs at users.sourceforge.net>
+
+       * src/display_itdb.c (gp_replace_itdb): fix memory leak. Thanks to
+         Andrea.
+
 2008-0-02 Jorg Schuler <jcsjcs at users.sourceforge.net>
 
-       * src/file_itunesdb (gp_import_itdb): fix memory leak. Thanks to
+       * src/file_itunesdb.c (gp_import_itdb): fix memory leak. Thanks to
          Andrea.
 
        * src/prefs.c (prefs_get_cfgdir): fix possible memory leak. Thanks

Modified: gtkpod/trunk/src/display_itdb.c
===================================================================
--- gtkpod/trunk/src/display_itdb.c     2008-08-03 02:55:51 UTC (rev 2083)
+++ gtkpod/trunk/src/display_itdb.c     2008-08-03 02:59:01 UTC (rev 2084)
@@ -515,6 +515,9 @@
     /* Set prefs system with name of MPL */
     mpl = itdb_playlist_mpl (new_itdb);
     set_itdb_prefs_string (new_itdb, "name", mpl->name);
+
+    /* Clean up */
+    g_free (old_pl_name);
 }    
 
 

Modified: gtkpod/trunk/src/display_playlists.c
===================================================================
--- gtkpod/trunk/src/display_playlists.c        2008-08-03 02:55:51 UTC (rev 
2083)
+++ gtkpod/trunk/src/display_playlists.c        2008-08-03 02:59:01 UTC (rev 
2084)
@@ -2351,6 +2351,7 @@
                 * an iPod */
                eitdb = pl->itdb->userdata;
                g_return_val_if_fail (eitdb, FALSE);
+               block_widgets ();
                if (!eitdb->itdb_imported)
                {
                    gp_load_ipod (pl->itdb);
@@ -2359,6 +2360,7 @@
                {
                    gp_eject_ipod (pl->itdb);
                }
+               release_widgets ();
                return TRUE;
            }
            if (pl->itdb->usertype & GP_ITDB_TYPE_LOCAL)


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
gtkpod-cvs2 mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gtkpod-cvs2

Reply via email to