summaryrefslogtreecommitdiffstats
path: root/gtk/src/main.c
diff options
context:
space:
mode:
authorjstebbins <[email protected]>2008-09-08 02:13:48 +0000
committerjstebbins <[email protected]>2008-09-08 02:13:48 +0000
commit4d231bd034d3f73efae01eee686896234c202a85 (patch)
tree97641b0afecfd6d8e167e276198f75b8de7b3e63 /gtk/src/main.c
parentee19debd964cbd40df6097f34be0076162700550 (diff)
LinGui: yikes, this thing leaks worse than my roof, fixed
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1677 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'gtk/src/main.c')
-rw-r--r--gtk/src/main.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/gtk/src/main.c b/gtk/src/main.c
index 02012b9bd..40307c8eb 100644
--- a/gtk/src/main.c
+++ b/gtk/src/main.c
@@ -39,6 +39,7 @@
#include "hb-backend.h"
#include "ghb-dvd.h"
#include "ghbcellrenderertext.h"
+#include "values.h"
/*
@@ -492,6 +493,7 @@ main (int argc, char *argv[])
g_option_context_add_main_entries (context, entries, GETTEXT_PACKAGE);
g_option_context_add_group (context, gtk_get_option_group (TRUE));
g_option_context_parse (context, &argc, &argv, &error);
+ g_option_context_free(context);
gtk_set_locale ();
gtk_init (&argc, &argv);
@@ -612,6 +614,14 @@ main (int argc, char *argv[])
g_timeout_add (500, ghb_timer_cb, (gpointer)ud);
// Everything should be go-to-go. Lets rock!
gtk_main ();
+ //I'd like to do this, but hb threads seem to persist for a while
+ //so closing crashes :\
+ //ghb_backend_close();
+ if (ud->queue)
+ ghb_value_free(ud->queue);
+ ghb_value_free(ud->settings);
+ g_io_channel_unref(ud->activity_log);
+ ghb_settings_close();
g_free(ud);
return 0;
}