Fix a bunch of obvious memory leaks at termination
Signed-off-by: Steffen Jaeckel <s@jaeckel.eu>
This commit is contained in:
@@ -194,6 +194,7 @@ otr_shutdown(void)
|
||||
free(jid);
|
||||
jid = NULL;
|
||||
}
|
||||
otrlib_shutdown();
|
||||
}
|
||||
|
||||
void
|
||||
|
||||
@@ -44,6 +44,7 @@ void otrlib_init_ops(OtrlMessageAppOps* ops);
|
||||
|
||||
void otrlib_init_timer(void);
|
||||
void otrlib_poll(void);
|
||||
void otrlib_shutdown(void);
|
||||
|
||||
ConnContext* otrlib_context_find(OtrlUserState user_state, const char* const recipient, char* jid);
|
||||
|
||||
|
||||
@@ -62,6 +62,12 @@ otrlib_init_timer(void)
|
||||
current_interval = otrl_message_poll_get_default_interval(user_state);
|
||||
}
|
||||
|
||||
void
|
||||
otrlib_shutdown(void)
|
||||
{
|
||||
g_timer_destroy(timer);
|
||||
}
|
||||
|
||||
void
|
||||
otrlib_poll(void)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user