Update of /cvsroot/gtkpod/libgpod/src
In directory sc8-pr-cvs2.sourceforge.net:/tmp/cvs-serv4389/src

Modified Files:
        itdb_artwork.c 
Log Message:
        * src/itdb_artwork.c (itdb_artwork_remove_thumbnail): memory used
          by thumbnail to be removed will be freed now. ATTENTION: this
          changes the previous API description that stated that the
          thumbnail will not be freed. This behaviour was inconsistent
          with all other _remove functions in libgpod and caused a memory
          hole.



Index: itdb_artwork.c
===================================================================
RCS file: /cvsroot/gtkpod/libgpod/src/itdb_artwork.c,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -d -r1.18 -r1.19
--- itdb_artwork.c      26 Nov 2006 15:00:41 -0000      1.18
+++ itdb_artwork.c      21 Mar 2007 05:19:14 -0000      1.19
@@ -1,4 +1,4 @@
-/* Time-stamp: <2006-11-26 23:31:45 jcs>
+/* Time-stamp: <2007-03-21 14:12:58 jcs>
 |
 |  Copyright (C) 2002-2005 Jorg Schuler <jcsjcs at users sourceforge net>
 |  Part of the gtkpod project.
@@ -122,7 +122,7 @@
  * @artwork: an #Itdb_Artwork
  * @thumb: an #Itdb_Thumb
  *
- * Removes @thumb from @artwork. The memory used by @thumb isn't freed.
+ * Removes @thumb from @artwork. The memory used by @thumb is freed.
  **/
 void
 itdb_artwork_remove_thumbnail (Itdb_Artwork *artwork, Itdb_Thumb *thumb)
@@ -131,6 +131,7 @@
     g_return_if_fail (thumb);
 
     artwork->thumbnails = g_list_remove (artwork->thumbnails, thumb);
+    itdb_thumb_free (thumb);
 }
 
 


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
gtkpod-cvs2 mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gtkpod-cvs2

Reply via email to