diff --git a/gui/queue.c b/gui/queue.c index d9a0f284..ebaec87c 100644 --- a/gui/queue.c +++ b/gui/queue.c @@ -81,8 +81,10 @@ void __queue_filter(GtkSearchEntry *entry, gpointer data) if (!gq_queue) return; - if (gq_queue->gq_search) + if (gq_queue->gq_search) { g_free(gq_queue->gq_search); + gq_queue->gq_search = NULL; + } if (strlen(text) > 0) { gq_queue->gq_visible = filter_search(text); gq_queue->gq_search = g_strdup(text);