commit a88d5cc705af526c6553116725517ae6e8e7d6b2
Author: phantomjinx <[email protected]>
Date: Wed Aug 24 10:29:54 2011 +0100
Stop unrefing NULL album art
* When loading covers in coverart display, we are unrefing the albumart
regardless of whether it has been loaded or whether there is any. Check
whether we actually have a reference before unrefing it.
plugins/cover_display/display_coverart.c | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/plugins/cover_display/display_coverart.c
b/plugins/cover_display/display_coverart.c
index f108e93..fe563c9 100644
--- a/plugins/cover_display/display_coverart.c
+++ b/plugins/cover_display/display_coverart.c
@@ -398,8 +398,11 @@ static void draw(cairo_t *cairo_context) {
cover->album = album;
if (force_pixbuf_covers) {
- g_object_unref(album->albumart);
- album->albumart = NULL;
+ if (album->albumart) {
+ g_object_unref(album->albumart);
+ album->albumart = NULL;
+ }
+
if (album->scaled_art != NULL) {
g_object_unref(album->scaled_art);
album->scaled_art = NULL;
------------------------------------------------------------------------------
Special Offer -- Download ArcSight Logger for FREE!
Finally, a world-class log management solution at an even better
price-free! And you'll get a free "Love Thy Logs" t-shirt when you
download Logger. Secure your free ArcSight Logger TODAY!
http://p.sf.net/sfu/arcsisghtdev2dev
_______________________________________________
gtkpod-cvs2 mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gtkpod-cvs2