diff options
author | Alexander Lantsev <aunsane@gmail.com> | 2015-05-18 20:30:21 +0000 |
---|---|---|
committer | Alexander Lantsev <aunsane@gmail.com> | 2015-05-18 20:30:21 +0000 |
commit | f3ec06759c21604436567693984ea31c5b1d5e3f (patch) | |
tree | 78d2b0bbaa105cb1faf96e49e0a3e94fa0df4444 /protocols/Tox/src/tox_multimedia.cpp | |
parent | 83341d2f5f8b20549d1be6da322cb0cc2f72b5a1 (diff) |
Tox:
- fixed bugs from coverity
- fixed empty profile loading
- version bump
git-svn-id: http://svn.miranda-ng.org/main/trunk@13687 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Tox/src/tox_multimedia.cpp')
-rw-r--r-- | protocols/Tox/src/tox_multimedia.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/protocols/Tox/src/tox_multimedia.cpp b/protocols/Tox/src/tox_multimedia.cpp index 0b0bfe87f2..0fe92349d5 100644 --- a/protocols/Tox/src/tox_multimedia.cpp +++ b/protocols/Tox/src/tox_multimedia.cpp @@ -121,6 +121,7 @@ void CToxOutgoingCall::OnCall(CCtrlBase*) int friendNumber = m_proto->GetToxFriendNumber(hContact);
if (friendNumber == UINT32_MAX)
{
+ mir_free(cSettings);
Close();
return;
}
@@ -128,9 +129,11 @@ void CToxOutgoingCall::OnCall(CCtrlBase*) int32_t callId;
if (toxav_call(m_proto->toxAv, &callId, friendNumber, cSettings, 10) == TOX_ERROR)
{
+ mir_free(cSettings);
m_proto->debugLogA(__FUNCTION__": failed to start outgoing call");
return;
}
+ mir_free(cSettings);
m_proto->calls[hContact] = callId;
char *message = NULL;
|