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

Merge pull request #583 from pasis/jid-memleak

Fixed memory leak in jid_create()
This commit is contained in:
James Booth 2015-06-24 22:00:02 +01:00
commit 7f17fd2e48

View File

@ -91,6 +91,7 @@ jid_create(const gchar * const str)
char *barejidraw = g_utf8_substring(trimmed, 0, g_utf8_pointer_to_offset(trimmed, slashp));
result->barejid = g_utf8_strdown(barejidraw, -1);
result->fulljid = g_strdup(trimmed);
g_free(barejidraw);
} else {
result->domainpart = g_strdup(domain_start);
result->barejid = g_utf8_strdown(trimmed, -1);