Mercurial > pidgin
comparison libpurple/protocols/jabber/jabber.c @ 31239:9d7b2a7709d5
disapproval of revision '3de680fff7ddd1b00149657afb7f6cd833000a90'
This breaks the build...
author | Paul Aurich <paul@darkrain42.org> |
---|---|
date | Mon, 21 Feb 2011 02:14:43 +0000 |
parents | b678afdc2b8f |
children | 9d8a47ca14a1 5fa13ec086e0 |
comparison
equal
deleted
inserted
replaced
31234:b678afdc2b8f | 31239:9d7b2a7709d5 |
---|---|
1982 | 1982 |
1983 /* try to remove just in case it already exists in the list */ | 1983 /* try to remove just in case it already exists in the list */ |
1984 jabber_remove_feature(namespace); | 1984 jabber_remove_feature(namespace); |
1985 | 1985 |
1986 jabber_features = g_list_append(jabber_features, feat); | 1986 jabber_features = g_list_append(jabber_features, feat); |
1987 | |
1988 /* Our cached caps_hash, if present, is now incorrect; force recalculation next time it is needed */ | |
1989 g_free(js->caps_hash); | |
1990 js->caps_hash = NULL; | |
1991 } | 1987 } |
1992 | 1988 |
1993 void jabber_remove_feature(const char *namespace) { | 1989 void jabber_remove_feature(const char *namespace) { |
1994 GList *feature; | 1990 GList *feature; |
1995 for(feature = jabber_features; feature; feature = feature->next) { | 1991 for(feature = jabber_features; feature; feature = feature->next) { |
2067 ident->type = g_strdup(type); | 2063 ident->type = g_strdup(type); |
2068 ident->lang = g_strdup(lang); | 2064 ident->lang = g_strdup(lang); |
2069 ident->name = g_strdup(name); | 2065 ident->name = g_strdup(name); |
2070 jabber_identities = g_list_insert_sorted(jabber_identities, ident, | 2066 jabber_identities = g_list_insert_sorted(jabber_identities, ident, |
2071 jabber_identity_compare); | 2067 jabber_identity_compare); |
2072 | |
2073 /* Our cached caps_hash, if present, is now incorrect; force recalculation next time it is needed */ | |
2074 g_free(js->caps_hash); | |
2075 js->caps_hash = NULL; | |
2076 } | 2068 } |
2077 | 2069 |
2078 static void jabber_identities_destroy(void) | 2070 static void jabber_identities_destroy(void) |
2079 { | 2071 { |
2080 while (jabber_identities) { | 2072 while (jabber_identities) { |