summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorjcsjcs <jcsjcs@f01d2545-417e-4e96-918e-98f8d0dbbcb6>2007-03-21 05:19:14 +0000
committerjcsjcs <jcsjcs@f01d2545-417e-4e96-918e-98f8d0dbbcb6>2007-03-21 05:19:14 +0000
commita0dd49d9079b20dd06fa88e457c38bb8282157c1 (patch)
tree878c91e3ece1371409fb587962495cc282844938 /src
parent953b0224ecbf560090fedb02127221fd7b1d9f54 (diff)
downloadlibgpod-a0dd49d9079b20dd06fa88e457c38bb8282157c1.tar.gz
libgpod-a0dd49d9079b20dd06fa88e457c38bb8282157c1.tar.xz
libgpod-a0dd49d9079b20dd06fa88e457c38bb8282157c1.zip
* 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. git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1403 f01d2545-417e-4e96-918e-98f8d0dbbcb6
Diffstat (limited to 'src')
-rw-r--r--src/itdb_artwork.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/itdb_artwork.c b/src/itdb_artwork.c
index 2defb4d..80b9a7f 100644
--- a/src/itdb_artwork.c
+++ b/src/itdb_artwork.c
@@ -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 @@ Itdb_Artwork *itdb_artwork_duplicate (Itdb_Artwork *artwork)
* @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 @@ itdb_artwork_remove_thumbnail (Itdb_Artwork *artwork, Itdb_Thumb *thumb)
g_return_if_fail (thumb);
artwork->thumbnails = g_list_remove (artwork->thumbnails, thumb);
+ itdb_thumb_free (thumb);
}