From 25d98b033dd862161a97eb91c25723cef772c65e Mon Sep 17 00:00:00 2001 From: Carlos Garcia Campos Date: Mon, 21 Aug 2006 18:46:48 +0000 Subject: [PATCH] Revert my previous commit, gnome_program_init owns the option context. Fix 2006-08-21 Carlos Garcia Campos * shell/main.c: (main): Revert my previous commit, gnome_program_init owns the option context. Fix another memory leak in main. Both caught by Christian Persch. --- ChangeLog | 7 +++++++ shell/main.c | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 561f1cd4..e1235b19 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2006-08-21 Carlos Garcia Campos + + * shell/main.c: (main): + + Revert my previous commit, gnome_program_init owns the option context. + Fix another memory leak in main. Both caught by Christian Persch. + 2006-08-21 Carlos Garcia Campos * shell/main.c: (main): diff --git a/shell/main.c b/shell/main.c index 41b8b18f..928f7fa8 100644 --- a/shell/main.c +++ b/shell/main.c @@ -310,12 +310,12 @@ main (int argc, char *argv[]) NULL); args = arguments_parse (); - g_option_context_free (context); #ifdef ENABLE_DBUS if (!ev_application_register_service (EV_APP)) { if (load_files_remote (file_arguments, args)) { g_hash_table_destroy (args); + g_object_unref (program); return 0; } -- 2.43.5