don't leak the references to the glade dialog and GnomeProgram

2007-01-31  Jens Granseuer  <jensgr@gmx.net>

	* gnome-window-properties.c: (main): don't leak the references to the
	glade dialog and GnomeProgram

svn path=/trunk/; revision=7216
This commit is contained in:
Jens Granseuer 2007-01-31 17:51:13 +00:00 committed by Jens Granseuer
parent 03bba8dc56
commit 6c52e0a535
2 changed files with 11 additions and 3 deletions

View file

@ -1,3 +1,8 @@
2007-01-31 Jens Granseuer <jensgr@gmx.net>
* gnome-window-properties.c: (main): don't leak the references to the
glade dialog and GnomeProgram
2007-01-07 Thomas Wood <thos@gnome.org>
Patch by: Elijah Newren <newren@gmail.com>

View file

@ -416,6 +416,7 @@ try_spawn_config_tool (GdkScreen *screen)
int
main (int argc, char **argv)
{
GnomeProgram *program;
GdkScreen *screen;
GnomeWMSettings new_settings;
int i;
@ -424,9 +425,9 @@ main (int argc, char **argv)
bind_textdomain_codeset(GETTEXT_PACKAGE, "UTF-8");
textdomain (GETTEXT_PACKAGE);
gnome_program_init ("gnome-window-properties", VERSION,
LIBGNOMEUI_MODULE, argc, argv,
NULL);
program = gnome_program_init ("gnome-window-properties", VERSION,
LIBGNOMEUI_MODULE, argc, argv,
NULL);
gnome_wm_manager_init ();
@ -518,6 +519,8 @@ main (int argc, char **argv)
gtk_main ();
g_object_unref (dialog);
g_object_unref (program);
return 0;
}