summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorGravatar Alexey Yakovenko <wakeroid@gmail.com>2010-08-29 18:53:44 +0200
committerGravatar Alexey Yakovenko <wakeroid@gmail.com>2010-08-29 18:53:44 +0200
commit8d68620944bddf4525855155887d23eb88d824ff (patch)
treea2a42a340241844263a068499ed94b6d2ca330fe /plugins
parent6fc47cd973331b5dac2a17151beb9294685430f8 (diff)
fixed memleak in search window
Diffstat (limited to 'plugins')
-rw-r--r--plugins/gtkui/search.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/plugins/gtkui/search.c b/plugins/gtkui/search.c
index 36818f9f..4d73f659 100644
--- a/plugins/gtkui/search.c
+++ b/plugins/gtkui/search.c
@@ -177,6 +177,7 @@ on_searchwin_key_press_event (GtkWidget *widget,
DB_playItem_t *it = deadbeef->pl_get_for_idx_and_iter (max (row, 0), PL_SEARCH);
if (it) {
deadbeef->sendmessage (M_PLAYSONGNUM, 0, deadbeef->pl_get_idx_of (it), 0);
+ deadbeef->pl_item_unref (it);
}
}
}