diff options
author | Jorg Schuler <jcsjcs@users.sourceforge.net> | 2007-06-29 16:02:00 +0000 |
---|---|---|
committer | Jorg Schuler <jcsjcs@users.sourceforge.net> | 2007-06-29 16:02:00 +0000 |
commit | 0980939eb4c5e23ea01fc1ed441c019c024d125c (patch) | |
tree | 1057bd2133b4580a068b9ff1ef1d8a625542bdc4 /src | |
parent | 4d2779926ba67231be66aa4ed3f9f107fd49278d (diff) | |
download | libgpod-0980939eb4c5e23ea01fc1ed441c019c024d125c.tar.gz libgpod-0980939eb4c5e23ea01fc1ed441c019c024d125c.tar.xz libgpod-0980939eb4c5e23ea01fc1ed441c019c024d125c.zip |
* 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.
git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1612 f01d2545-417e-4e96-918e-98f8d0dbbcb6
Diffstat (limited to 'src')
-rw-r--r-- | src/itdb_artwork.c | 4 |
1 files changed, 4 insertions, 0 deletions
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; } |