|
|
1495fde |
diff -Nur audacious-plugins-2.2-orig/src/alarm/alarm.c audacious-plugins-2.2-cfg_db_close/src/alarm/alarm.c
|
|
|
1495fde |
--- audacious-plugins-2.2-orig/src/alarm/alarm.c 2009-11-22 23:49:52.000000000 +0100
|
|
|
1495fde |
+++ audacious-plugins-2.2-cfg_db_close/src/alarm/alarm.c 2009-12-19 19:43:39.000000000 +0100
|
|
|
1495fde |
@@ -354,6 +354,7 @@
|
|
|
1495fde |
alarm_conf.day[daynum].min = DEFAULT_ALARM_MIN;
|
|
|
1495fde |
}
|
|
|
1495fde |
|
|
|
1495fde |
+ aud_cfg_db_close(conf);
|
|
|
1495fde |
DEBUG("END alarm_read_config\n");
|
|
|
1495fde |
}
|
|
|
1495fde |
|
|
|
1495fde |
diff -Nur audacious-plugins-2.2-orig/src/lastfm/lastfm.c audacious-plugins-2.2-cfg_db_close/src/lastfm/lastfm.c
|
|
|
1495fde |
--- audacious-plugins-2.2-orig/src/lastfm/lastfm.c 2009-11-22 23:49:53.000000000 +0100
|
|
|
1495fde |
+++ audacious-plugins-2.2-cfg_db_close/src/lastfm/lastfm.c 2009-12-19 19:43:39.000000000 +0100
|
|
|
1495fde |
@@ -109,7 +109,7 @@
|
|
|
1495fde |
{
|
|
|
1495fde |
aud_cfg_db_get_string(cfg, "audioscrobbler", "username", &username);
|
|
|
1495fde |
aud_cfg_db_get_string(cfg, "audioscrobbler", "password", &password);
|
|
|
1495fde |
- g_free(cfg);
|
|
|
1495fde |
+ aud_cfg_db_close(cfg);
|
|
|
1495fde |
}
|
|
|
1495fde |
if (username != NULL && password != NULL)
|
|
|
1495fde |
{
|
|
|
1495fde |
diff -Nur audacious-plugins-2.2-orig/src/neon/neon.c audacious-plugins-2.2-cfg_db_close/src/neon/neon.c
|
|
|
1495fde |
--- audacious-plugins-2.2-orig/src/neon/neon.c 2009-11-22 23:49:53.000000000 +0100
|
|
|
1495fde |
+++ audacious-plugins-2.2-cfg_db_close/src/neon/neon.c 2009-12-19 19:43:39.000000000 +0100
|
|
|
1495fde |
@@ -508,6 +508,7 @@
|
|
|
1495fde |
aud_cfg_db_get_string(db, NULL, "proxy_user", &value);
|
|
|
1495fde |
if (!value) {
|
|
|
1495fde |
_DEBUG("<%p> proxy_auth requested but no proxy_user", userdata);
|
|
|
1495fde |
+ aud_cfg_db_close(db);
|
|
|
1495fde |
_LEAVE -1;
|
|
|
1495fde |
}
|
|
|
1495fde |
g_strlcpy(username, value, NE_ABUFSIZ);
|
|
|
1495fde |
@@ -516,11 +517,13 @@
|
|
|
1495fde |
aud_cfg_db_get_string(db, NULL, "proxy_pass", &value);
|
|
|
1495fde |
if (!value) {
|
|
|
1495fde |
_DEBUG("<%p> proxy_auth requested but no proxy_pass", userdata);
|
|
|
1495fde |
+ aud_cfg_db_close(db);
|
|
|
1495fde |
_LEAVE -1;
|
|
|
1495fde |
}
|
|
|
1495fde |
g_strlcpy(password, value, NE_ABUFSIZ);
|
|
|
1495fde |
value = NULL;
|
|
|
1495fde |
|
|
|
1495fde |
+ aud_cfg_db_close(db);
|
|
|
1495fde |
_LEAVE attempt;
|
|
|
1495fde |
}
|
|
|
1495fde |
|