summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 3c2e60cb..0652cb6f 100644
--- a/plugins/gtkui/trkproperties.c
+++ b/plugins/gtkui/trkproperties.c
@@ -192,6 +192,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);
}