summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorGravatar waker <wakeroid@gmail.com>2011-06-23 22:16:12 +0200
committerGravatar waker <wakeroid@gmail.com>2011-06-23 22:16:12 +0200
commit362be18e1d113c8b85b61b44dc53d7b91b26ffef (patch)
tree24c3c6cef5dd84e3cd353cbade5365f67933d5f5 /plugins
parent5280992071a32ab1bb784d455f5c972d3ffda07b (diff)
fixed memleak in cover art widget
Diffstat (limited to 'plugins')
-rw-r--r--plugins/gtkui/widgets.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/plugins/gtkui/widgets.c b/plugins/gtkui/widgets.c
index 65d16e63..b3e1c32f 100644
--- a/plugins/gtkui/widgets.c
+++ b/plugins/gtkui/widgets.c
@@ -1123,6 +1123,8 @@ coverart_message (ddb_gtkui_widget_t *w, uint32_t id, uintptr_t ctx, uint32_t p1
DB_playItem_t *it = deadbeef->streamer_get_playing_track ();
if (it == ev->track) {
g_idle_add (coverart_redraw_cb, w);
+ }
+ if (it) {
deadbeef->pl_item_unref (it);
}
}