From 0980939eb4c5e23ea01fc1ed441c019c024d125c Mon Sep 17 00:00:00 2001 From: Jorg Schuler Date: Fri, 29 Jun 2007 16:02:00 +0000 Subject: * src/itdb_artwork.c (itdb_thumb_free, itdb_thumb_duplicate): fix compile time error when compiling without GDKPIXBUF. Alternative fix: add '#include '. Thanks to Olivier CrĂȘte. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1612 f01d2545-417e-4e96-918e-98f8d0dbbcb6 --- ChangeLog | 6 ++++++ src/itdb_artwork.c | 4 ++++ 2 files changed, 10 insertions(+) diff --git a/ChangeLog b/ChangeLog index b7189ec..6b821de 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2007-06-23 Jorg Schuler + + * src/itdb_artwork.c (itdb_thumb_free, itdb_thumb_duplicate): fix + compile time error when compiling without GDKPIXBUF. Alternative + fix: add '#include '. Thanks to Olivier CrĂȘte. + 2007-06-28 Nicholas Piper * bindings/python/ipod.py: Remove hard-coding of diff --git a/src/itdb_artwork.c b/src/itdb_artwork.c index 113c0f2..fc44250 100644 --- a/src/itdb_artwork.c +++ b/src/itdb_artwork.c @@ -849,9 +849,11 @@ void itdb_thumb_free (Itdb_Thumb *thumb) g_return_if_fail (thumb); g_free (thumb->image_data); +#ifdef HAVE_GDKPIXBUF if (thumb->pixbuf) { g_object_unref (G_OBJECT (thumb->pixbuf)); } +#endif g_free (thumb->filename); g_free (thumb); } @@ -883,9 +885,11 @@ Itdb_Thumb *itdb_thumb_duplicate (Itdb_Thumb *thumb) memcpy (new_thumb->image_data, thumb->image_data, new_thumb->image_data_len); } +#ifdef HAVE_GDKPIXBUF if (thumb->pixbuf) { g_object_ref (G_OBJECT (thumb->pixbuf)); } +#endif return new_thumb; } -- cgit