diff options
author | jstebbins <[email protected]> | 2008-06-30 23:53:04 +0000 |
---|---|---|
committer | jstebbins <[email protected]> | 2008-06-30 23:53:04 +0000 |
commit | 1b44faba8af642f4892958b464309a94e52c8760 (patch) | |
tree | 1050b65785fd2d94a792ddd9a1f3e111d3e0aed9 /gtk/src/callbacks.c | |
parent | 19c8a9d6099bfadbc72bfd9d5c09814597ac3ffe (diff) |
LinGui: clean up temporary file turds upon exit
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1546 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'gtk/src/callbacks.c')
-rw-r--r-- | gtk/src/callbacks.c | 6 |
1 files changed, 6 insertions, 0 deletions
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; |