From 25d98b033dd862161a97eb91c25723cef772c65e Mon Sep 17 00:00:00 2001 From: Carlos Garcia Campos Date: Mon, 21 Aug 2006 18:46:48 +0000 Subject: 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. --- (limited to 'shell') diff --git a/shell/main.c b/shell/main.c index 41b8b18..928f7fa 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; } -- cgit v0.9.1