mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
Fix for memory leak. And add forgotten break
This commit is contained in:
parent
9878b441b1
commit
837f72b39e
|
@ -588,6 +588,8 @@ int toxav_kill_transmission ( ToxAv *av, int32_t call_index )
|
|||
codec_terminate_session(call->cs);
|
||||
call->cs = NULL;
|
||||
|
||||
free(call->frame_buf);
|
||||
|
||||
pthread_mutex_unlock(&call->mutex);
|
||||
pthread_mutex_destroy(&call->mutex);
|
||||
|
||||
|
|
|
@ -1282,6 +1282,8 @@ static void handle_direct_packet(Group_Chats *g_c, int groupnumber, const uint8_
|
|||
}
|
||||
}
|
||||
|
||||
break;
|
||||
|
||||
case PEER_QUERY_ID: {
|
||||
Group_c *g = get_group_c(g_c, groupnumber);
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user