From 085701ad9d9d1d54b6918f5fa978c7875e0d0b59 Mon Sep 17 00:00:00 2001 From: Anna Schumaker Date: Sat, 13 Aug 2016 08:21:22 -0400 Subject: [PATCH] gui/queue: Set gq_queue->gq_visible to NULL after destroying Otherwise the existance check will still pass the next time __queue_filter() is called, and we will attempt to destroy it again. 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 2da8ba4a..d9a0f284 100644 --- a/gui/queue.c +++ b/gui/queue.c @@ -91,8 +91,10 @@ void __queue_filter(GtkSearchEntry *entry, gpointer data) gtk_tree_model_filter_refilter(GTK_TREE_MODEL_FILTER(gq_queue->gq_filter)); gui_view_scroll(); - if (gq_queue->gq_visible) + if (gq_queue->gq_visible) { g_hash_table_destroy(gq_queue->gq_visible); + gq_queue->gq_visible = NULL; + } } struct gui_queue *gui_queue_alloc(struct queue *queue, const gchar *text,