diff options
author | Jorg Schuler <jcsjcs@users.sourceforge.net> | 2007-03-21 05:19:14 +0000 |
---|---|---|
committer | Jorg Schuler <jcsjcs@users.sourceforge.net> | 2007-03-21 05:19:14 +0000 |
commit | 96bcaf5268be42578f4406df9478ce365d263562 (patch) | |
tree | 878c91e3ece1371409fb587962495cc282844938 /src | |
parent | d8f9ce4737e44f04136de3d7b5d9caed2e32a9b0 (diff) | |
download | libgpod-96bcaf5268be42578f4406df9478ce365d263562.tar.gz libgpod-96bcaf5268be42578f4406df9478ce365d263562.tar.xz libgpod-96bcaf5268be42578f4406df9478ce365d263562.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.c | 5 |
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); } |