summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Alexey Yakovenko <wakeroid@gmail.com>2010-05-19 21:04:51 +0200
committerGravatar Alexey Yakovenko <wakeroid@gmail.com>2010-05-19 21:04:51 +0200
commit40571651057d23c7f59631372ec62dfb3d3ac855 (patch)
tree96c341d6cd8c277a51e9bf17dd788d7afb547c1b
parent6ce1f73ca437f7bdfb52772ce8422ab909345850 (diff)
parent1568f405a8836306011803950011182f9253a620 (diff)
Merge branch 'master' into i18n
-rw-r--r--plugins/gtkui/trkproperties.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/plugins/gtkui/trkproperties.c b/plugins/gtkui/trkproperties.c
index b63fa6ca..1439a09b 100644
--- a/plugins/gtkui/trkproperties.c
+++ b/plugins/gtkui/trkproperties.c
@@ -196,6 +196,10 @@ trkproperties_fill_metadata (void) {
void
show_track_properties_dlg (DB_playItem_t *it) {
+ if (track) {
+ deadbeef->pl_item_unref (track);
+ track = NULL;
+ }
if (it) {
deadbeef->pl_item_ref (it);
}