From 004d4578d4e6b635c9525700e981b7b638671beb Mon Sep 17 00:00:00 2001 From: Anna Schumaker Date: Sat, 13 Aug 2016 08:26:00 -0400 Subject: [PATCH] gui/queue: Set gq_queue->gq_search to NULL after freeing Otherwise we can attempt to free the search text again when the queue is destroyed. Signed-off-by: Anna Schumaker --- gui/queue.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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);