Fix for memory leak. And add forgotten break

This commit is contained in:
xor2003 2014-10-24 15:53:38 +04:00
parent 9878b441b1
commit 837f72b39e
2 changed files with 4 additions and 0 deletions

View File

@ -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);

View File

@ -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);