From 1b44faba8af642f4892958b464309a94e52c8760 Mon Sep 17 00:00:00 2001 From: jstebbins Date: Mon, 30 Jun 2008 23:53:04 +0000 Subject: LinGui: clean up temporary file turds upon exit git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1546 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- gtk/src/callbacks.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'gtk/src/callbacks.c') diff --git a/gtk/src/callbacks.c b/gtk/src/callbacks.c index 3a16386ea..ce40e2998 100644 --- a/gtk/src/callbacks.c +++ b/gtk/src/callbacks.c @@ -303,11 +303,13 @@ on_quit1_activate(GtkMenuItem *quit, signal_user_data_t *ud) { if (cancel_encode("Closing HandBrake will terminate encoding.\n")) { + ghb_hb_cleanup(); gtk_main_quit(); return; } return; } + ghb_hb_cleanup(); gtk_main_quit(); } @@ -774,6 +776,7 @@ gboolean window_destroy_event_cb(GtkWidget *widget, GdkEvent *event, signal_user_data_t *ud) { g_debug("window_destroy_event_cb ()\n"); + ghb_hb_cleanup(); gtk_main_quit(); return FALSE; } @@ -786,11 +789,13 @@ window_delete_event_cb(GtkWidget *widget, GdkEvent *event, signal_user_data_t *u { if (cancel_encode("Closing HandBrake will terminate encoding.\n")) { + ghb_hb_cleanup(); gtk_main_quit(); return FALSE; } return TRUE; } + ghb_hb_cleanup(); gtk_main_quit(); return FALSE; } @@ -2613,6 +2618,7 @@ ghb_timer_cb(gpointer data) current_id = -1; if (ghb_autostart) { + ghb_hb_cleanup(); gtk_main_quit(); } } break; -- cgit v1.2.3