comparison libpurple/prefs.c @ 19693:5a051296836c

Probably Fixes 1649
author Ka-Hing Cheung <khc@hxbc.us>
date Sun, 09 Sep 2007 22:45:45 +0000
parents 44b4e8bd759b
children 0484600ac434
comparison
equal deleted inserted replaced
19692:a5a9dbd1bdeb 19693:5a051296836c
327 break; 327 break;
328 case PURPLE_PREF_STRING_LIST: 328 case PURPLE_PREF_STRING_LIST:
329 purple_prefs_set_string_list(pref_name_full->str, NULL); 329 purple_prefs_set_string_list(pref_name_full->str, NULL);
330 break; 330 break;
331 case PURPLE_PREF_PATH: 331 case PURPLE_PREF_PATH:
332 decoded = g_filename_from_utf8(pref_value, -1, NULL, NULL, NULL); 332 if (pref_value) {
333 purple_prefs_set_path(pref_name_full->str, decoded); 333 decoded = g_filename_from_utf8(pref_value, -1, NULL, NULL, NULL);
334 g_free(decoded); 334 purple_prefs_set_path(pref_name_full->str, decoded);
335 g_free(decoded);
336 } else {
337 purple_prefs_set_path(pref_name_full->str, NULL);
338 }
335 break; 339 break;
336 case PURPLE_PREF_PATH_LIST: 340 case PURPLE_PREF_PATH_LIST:
337 purple_prefs_set_path_list(pref_name_full->str, NULL); 341 purple_prefs_set_path_list(pref_name_full->str, NULL);
338 break; 342 break;
339 } 343 }