1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-12-04 14:46:46 -05:00

Merge branch 'master' into osx-functional

This commit is contained in:
James Booth 2016-08-17 23:35:12 +01:00
commit 45010e35b5
2 changed files with 5 additions and 3 deletions

View File

@ -113,17 +113,19 @@ caps_get_features(void)
GList *curr = prof_features;
while (curr) {
result = g_list_append(result, curr->data);
result = g_list_append(result, strdup(curr->data));
curr = g_list_next(curr);
}
GList *plugin_features = plugins_get_disco_features();
curr = plugin_features;
while (curr) {
result = g_list_append(result, curr->data);
result = g_list_append(result, strdup(curr->data));
curr = g_list_next(curr);
}
g_list_free(plugin_features);
return result;
}

View File

@ -1096,7 +1096,7 @@ stanza_create_caps_query_element(xmpp_ctx_t *ctx)
curr = g_list_next(curr);
}
g_list_free(features);
g_list_free_full(features, free);
return query;
}