summaryrefslogtreecommitdiffstats
path: root/gtk
diff options
context:
space:
mode:
authorjstebbins <[email protected]>2015-01-13 18:38:55 +0000
committerjstebbins <[email protected]>2015-01-13 18:38:55 +0000
commit2c5ec037274054f5dd4a270811c11afb5caa7331 (patch)
tree6958dcbb6214fb6bd73c9101b1d951f36cae2ed8 /gtk
parent29ee7aebc3d94cfdd5ffb9eeae35bcbf85f1b81e (diff)
LinGui: fix small memory leak
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6743 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'gtk')
-rw-r--r--gtk/src/queuehandler.c10
1 files changed, 4 insertions, 6 deletions
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;
}