From 2c5ec037274054f5dd4a270811c11afb5caa7331 Mon Sep 17 00:00:00 2001 From: jstebbins Date: Tue, 13 Jan 2015 18:38:55 +0000 Subject: LinGui: fix small memory leak git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6743 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- gtk/src/queuehandler.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'gtk') diff --git a/gtk/src/queuehandler.c b/gtk/src/queuehandler.c index a7bd80ec4..d7e808d99 100644 --- a/gtk/src/queuehandler.c +++ b/gtk/src/queuehandler.c @@ -1972,9 +1972,11 @@ find_pid: } } if (!unfinished) + { + ghb_value_free(queue); goto find_pid; - - if (unfinished) + } + else { GtkWindow *hb_window; hb_window = GTK_WINDOW(GHB_WIDGET(ud->builder, "hb_window")); @@ -2016,10 +2018,6 @@ find_pid: } g_free(message); } - else - { - ghb_value_free(queue); - } return FALSE; } -- cgit v1.2.3