don't leak the GnomeProgram reference
2007-01-31 Jens Granseuer <jensgr@gmx.net> * factory.c: (main): don't leak the GnomeProgram reference svn path=/trunk/; revision=7218
This commit is contained in:
parent
5f9d174f42
commit
413ec80cd2
2 changed files with 12 additions and 5 deletions
|
@ -1,3 +1,7 @@
|
|||
2007-01-31 Jens Granseuer <jensgr@gmx.net>
|
||||
|
||||
* factory.c: (main): don't leak the GnomeProgram reference
|
||||
|
||||
2007-01-31 Jens Granseuer <jensgr@gmx.net>
|
||||
|
||||
* gnome-settings-multimedia-keys.c: (acme_filter_events): make sure
|
||||
|
|
|
@ -15,6 +15,7 @@ GConfClient *conf_client = NULL;
|
|||
|
||||
int main (int argc, char *argv [])
|
||||
{
|
||||
GnomeProgram *program;
|
||||
GnomeClient *session;
|
||||
gchar *restart_argv[] = { "gnome-settings-daemon", NULL, NULL };
|
||||
|
||||
|
@ -24,11 +25,11 @@ int main (int argc, char *argv [])
|
|||
bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
|
||||
textdomain (GETTEXT_PACKAGE);
|
||||
|
||||
gnome_program_init ("gnome-settings-daemon", VERSION,
|
||||
LIBGNOMEUI_MODULE,
|
||||
argc, argv,
|
||||
GNOME_CLIENT_PARAM_SM_CONNECT, FALSE,
|
||||
NULL);
|
||||
program = gnome_program_init ("gnome-settings-daemon", VERSION,
|
||||
LIBGNOMEUI_MODULE,
|
||||
argc, argv,
|
||||
GNOME_CLIENT_PARAM_SM_CONNECT, FALSE,
|
||||
NULL);
|
||||
|
||||
gconf_init (argc, argv, NULL); /* exits w/ message on failure */
|
||||
|
||||
|
@ -47,5 +48,7 @@ int main (int argc, char *argv [])
|
|||
if (conf_client)
|
||||
g_object_unref (conf_client);
|
||||
|
||||
g_object_unref (program);
|
||||
|
||||
return -1;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue