summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Alexey Yakovenko <wakeroid@gmail.com>2010-05-19 21:04:39 +0200
committerGravatar Alexey Yakovenko <wakeroid@gmail.com>2010-05-19 21:04:39 +0200
commit1568f405a8836306011803950011182f9253a620 (patch)
tree73b2af9247503c51ce0f94b6855be636f7ed3a7d
parent7dedf440d149b7f7394c7810d9ca6e42ee89b7bd (diff)
fixed memleak in track properties
-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);
}