comparison src/audacious/main.c @ 4543:ed94ac6182df

whoops, too much cosmetics is bad for the overall appearance
author mf0102 <0102@gmx.at>
date Mon, 12 May 2008 19:31:11 +0200
parents 26209b646930
children 084dbc8d23da
comparison
equal deleted inserted replaced
4542:26209b646930 4543:ed94ac6182df
134 make_directory(aud_paths[BMP_PATH_SKIN_THUMB_DIR], mode755); 134 make_directory(aud_paths[BMP_PATH_SKIN_THUMB_DIR], mode755);
135 make_directory(aud_paths[BMP_PATH_PLAYLISTS_DIR], mode755); 135 make_directory(aud_paths[BMP_PATH_PLAYLISTS_DIR], mode755);
136 } 136 }
137 137
138 static void 138 static void
139 aud_free_paths(void)
140 {
141 int i;
142
143 for (i = 0; i < BMP_PATH_COUNT; i++)
144 {
145 g_free(aud_paths[i]);
146 aud_paths[i] = 0;
147 }
148 }
149
150 static void
139 aud_init_paths() 151 aud_init_paths()
140 { 152 {
141 char *xdg_config_home; 153 char *xdg_config_home;
142 char *xdg_data_home; 154 char *xdg_data_home;
143 char *xdg_cache_home; 155 char *xdg_cache_home;
187 g_free(xdg_config_home); 199 g_free(xdg_config_home);
188 g_free(xdg_data_home); 200 g_free(xdg_data_home);
189 g_free(xdg_cache_home); 201 g_free(xdg_cache_home);
190 202
191 g_atexit(aud_free_paths); 203 g_atexit(aud_free_paths);
192 }
193
194 static void
195 aud_free_paths(void)
196 {
197 int i;
198
199 for (i = 0; i < BMP_PATH_COUNT; i++)
200 {
201 g_free(aud_paths[i]);
202 aud_paths[i] = 0;
203 }
204 } 204 }
205 205
206 static void 206 static void
207 aud_set_default_icon(void) 207 aud_set_default_icon(void)
208 { 208 {