commit 63846e59176035bffdbf19eca19875a0aa149f79 Author: phantomjinx <p.g.richard...@phantomjinx.co.uk> Date: Wed Mar 2 22:19:44 2011 +0000
Fixed memory leaks * Thanks to Peter Hoepfner for identifying them src/itdb_itunesdb.c | 14 +++++++++++++- 1 files changed, 13 insertions(+), 1 deletions(-) --- diff --git a/src/itdb_itunesdb.c b/src/itdb_itunesdb.c index 8d1e5c7..840e95b 100644 --- a/src/itdb_itunesdb.c +++ b/src/itdb_itunesdb.c @@ -462,12 +462,12 @@ gchar * itdb_resolve_path (const gchar *root, continue; } file_stdcase = g_utf8_casefold(file_utf8,-1); + g_free(file_utf8); found = !g_utf8_collate(file_stdcase,component_stdcase); g_free(file_stdcase); if(!found) { /* This is not the matching entry */ - g_free(file_utf8); continue; } @@ -1347,6 +1347,18 @@ void itdb_free (Itdb_iTunesDB *itdb) { g_list_foreach (itdb->playlists, (GFunc)(itdb_playlist_free), NULL); + + if (itdb->priv) { + if (itdb->priv->mhsd5_playlists) + { + g_list_foreach (itdb->priv->mhsd5_playlists, + (GFunc)(itdb_playlist_free), NULL); + } + + if (itdb->priv->genius_cuid) + g_free(itdb->priv->genius_cuid); + } + g_list_free (itdb->playlists); g_list_foreach (itdb->tracks, (GFunc)(itdb_track_free), NULL); ------------------------------------------------------------------------------ Free Software Download: Index, Search & Analyze Logs and other IT data in Real-Time with Splunk. Collect, index and harness all the fast moving IT data generated by your applications, servers and devices whether physical, virtual or in the cloud. Deliver compliance at lower cost and gain new business insights. http://p.sf.net/sfu/splunk-dev2dev _______________________________________________ gtkpod-cvs2 mailing list gtkpod-cvs2@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gtkpod-cvs2