Compare commits
4 Commits
fix/xmpp-p
...
fix/memory
| Author | SHA1 | Date | |
|---|---|---|---|
|
da7b32cbba
|
|||
| 6faee6177d | |||
|
9a41c959ca
|
|||
| 00f47a1598 |
@@ -299,7 +299,9 @@ stanza_parse(char *stanza_text)
|
||||
XML_Parse(parser, stanza_text, strlen(stanza_text), 0);
|
||||
XML_ParserFree(parser);
|
||||
|
||||
return state->curr_stanza;
|
||||
XMPPStanza *result = state->curr_stanza;
|
||||
free(state);
|
||||
return result;
|
||||
}
|
||||
|
||||
static void
|
||||
|
||||
@@ -63,6 +63,7 @@ verify_any(char *stanza_text, gboolean ign_timeout)
|
||||
usleep(1000 * 50);
|
||||
elapsed = g_timer_elapsed(timer, NULL);
|
||||
}
|
||||
g_timer_destroy(timer);
|
||||
}
|
||||
|
||||
if (result) {
|
||||
@@ -94,6 +95,7 @@ verify_last(char *stanza_text)
|
||||
usleep(1000 * 50);
|
||||
elapsed = g_timer_elapsed(timer, NULL);
|
||||
}
|
||||
g_timer_destroy(timer);
|
||||
}
|
||||
|
||||
if (result) {
|
||||
|
||||
Reference in New Issue
Block a user