Skip to content

Commit

Permalink
Workaround for builtin-gconf clients not being GObjects
Browse files Browse the repository at this point in the history
Do not try to g_object_unref() non-GObject client objects.
  • Loading branch information
spiiroin committed Dec 11, 2012
1 parent 8d01830 commit c55c41a
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion mce-gconf.c
Expand Up @@ -417,9 +417,16 @@ void mce_gconf_exit(void)
(GFunc)mce_gconf_notifier_remove, NULL);
gconf_notifiers = NULL;
}

#ifdef ENABLE_BUILTIN_GCONF
/* FIME: did not notice that gconf clients are GObjects ...
* now we can't g_object_unref() the client pointers
* from builtin-gconf
*/
#else
/* Unreference GConf client */
g_object_unref(gconf_client);
#endif
gconf_client = 0;
}

return;
Expand Down

0 comments on commit c55c41a

Please sign in to comment.