commit 0ad17fea2f9312510f9f1efe99c3518dcf451499
Author: Christophe Fergeau <[email protected]>
Date: Sun Oct 18 00:37:19 2009 +0200
don't free albums and artists hashes after writing mhli/mhla
We will reuse them in more place than just mhli/mhla, and it's not really
useful to do it there anyway since it will be done before exiting
itdb_write_file_internal.
src/itdb_itunesdb.c | 4 ----
1 files changed, 0 insertions(+), 4 deletions(-)
---
diff --git a/src/itdb_itunesdb.c b/src/itdb_itunesdb.c
index fdbe898..4b31378 100644
--- a/src/itdb_itunesdb.c
+++ b/src/itdb_itunesdb.c
@@ -4562,8 +4562,6 @@ static void mk_mhla (FExport *fexp)
put32lint (cts, g_hash_table_size (fexp->albums));
put32_n0 (cts, 20); /* dummy space */
g_hash_table_foreach (fexp->albums, mk_mhia, fexp);
- g_hash_table_destroy (fexp->albums);
- fexp->albums = NULL;
}
/* Write out the mhlp header. Size will be written later */
@@ -4643,8 +4641,6 @@ static void mk_mhli (FExport *fexp)
put32lint (cts, g_hash_table_size (fexp->artists));
put32_n0 (cts, 20); /* dummy space */
g_hash_table_foreach (fexp->artists, mk_mhii, fexp);
- g_hash_table_destroy (fexp->artists);
- fexp->artists = NULL;
}
/* Write out the long MHOD_ID_PLAYLIST mhod header.
------------------------------------------------------------------------------
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