From 1568f405a8836306011803950011182f9253a620 Mon Sep 17 00:00:00 2001 From: Alexey Yakovenko Date: Wed, 19 May 2010 21:04:39 +0200 Subject: fixed memleak in track properties --- plugins/gtkui/trkproperties.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'plugins/gtkui') 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); } -- cgit v1.2.3