src/accountopt.c

changeset 13234
1d8e569b2053
parent 12172
717fa0ec02c4
child 14097
0c340861ab79
equal deleted inserted replaced
13233:1a55c46f0a24 13234:1d8e569b2053
112 void 112 void
113 gaim_account_option_destroy(GaimAccountOption *option) 113 gaim_account_option_destroy(GaimAccountOption *option)
114 { 114 {
115 g_return_if_fail(option != NULL); 115 g_return_if_fail(option != NULL);
116 116
117 if (option->text != NULL) 117 g_free(option->text);
118 g_free(option->text); 118 g_free(option->pref_name);
119
120 if (option->pref_name != NULL)
121 g_free(option->pref_name);
122 119
123 if (option->type == GAIM_PREF_STRING) 120 if (option->type == GAIM_PREF_STRING)
124 { 121 {
125 if (option->default_value.string != NULL) 122 g_free(option->default_value.string);
126 g_free(option->default_value.string);
127 } 123 }
128 else if (option->type == GAIM_PREF_STRING_LIST) 124 else if (option->type == GAIM_PREF_STRING_LIST)
129 { 125 {
130 if (option->default_value.list != NULL) 126 if (option->default_value.list != NULL)
131 { 127 {

mercurial