summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog6
-rw-r--r--src/itdb_artwork.c4
2 files changed, 10 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index b7189ec..6b821de 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2007-06-23 Jorg Schuler <jcsjcs at users.sourceforge.net>
+
+ * src/itdb_artwork.c (itdb_thumb_free, itdb_thumb_duplicate): fix
+ compile time error when compiling without GDKPIXBUF. Alternative
+ fix: add '#include <glib-object.h>'. Thanks to Olivier CrĂȘte.
+
2007-06-28 Nicholas Piper <nicholas at users.sourceforge.net>
* 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;
}