Mercurial > audlegacy
changeset 1449:a69db3a15bf2 trunk
[svn] - experimental change to bmp_cfg_db_open() to ensure that g_type_init()
has been called
author | nenolod |
---|---|
date | Fri, 28 Jul 2006 10:56:44 -0700 |
parents | 3b1c464cbbb0 |
children | 9bb6d5ce6d95 |
files | ChangeLog libaudacious/configdb_gconf.c |
diffstat | 2 files changed, 12 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog Fri Jul 28 07:21:20 2006 -0700 +++ b/ChangeLog Fri Jul 28 10:56:44 2006 -0700 @@ -1,3 +1,13 @@ +2006-07-28 14:21:20 +0000 Derek Pomery <nemo@m8y.org> + revision [1810] + Seems safer to me to free this way, assuming I'm not misreading. + Hey. At least it doesn't crash. + + + Changes: Modified: + +4 -4 trunk/libaudacious/beepctrl.c + + 2006-07-28 09:27:19 +0000 William Pitcock <nenolod@nenolod.net> revision [1808] - fix invalid frees
--- a/libaudacious/configdb_gconf.c Fri Jul 28 07:21:20 2006 -0700 +++ b/libaudacious/configdb_gconf.c Fri Jul 28 10:56:44 2006 -0700 @@ -18,20 +18,19 @@ #include <string.h> #include <gconf/gconf-client.h> - #define BMP_CONFIG_BASE_PATH "/apps/audacious" - struct _ConfigDb { GConfClient *client; }; - ConfigDb * bmp_cfg_db_open() { ConfigDb *db; + g_type_init(); + db = g_new(ConfigDb, 1); db->client = gconf_client_get_default();