** psensor: bug fixed compilation with -Wall.
** psensor: bug fixed unallocated memory read during termination.
** psensor: fixed memleak when window not drawable.
+** psensor: release GConfClient when quitting.
* v0.6.2.9
client = gconf_client_get_default();
}
+void config_cleanup()
+{
+ if (client) {
+ g_object_unref(client);
+ client = NULL;
+ }
+}
+
struct config *config_load()
{
struct config *cfg = malloc(sizeof(struct config));
void config_init();
+void config_cleanup();
+
struct color *config_get_sensor_color(char *sensor_name,
struct color *default_color);
g_mutex_unlock(ui.sensors_mutex);
+ config_cleanup();
+
return 0;
}