Skip to content

Commit

Permalink
Update iac_android.cpp
Browse files Browse the repository at this point in the history
fixed issue with memory free
  • Loading branch information
AGulev committed Sep 25, 2019
1 parent 27c5753 commit 894ea0a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions extension-iac/src/iac_android.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -324,12 +324,12 @@ dmExtension::Result UpdateIAC(dmExtension::Params* params)
}
if (cmd.m_Payload != 0x0)
{
free(cmd.m_Payload);
free((void*)cmd.m_Payload);
cmd.m_Payload = 0x0;
}
if (cmd.m_Origin != 0x0)
{
free(cmd.m_Origin);
free((void*)cmd.m_Origin);
cmd.m_Origin = 0x0;
}
}
Expand Down

0 comments on commit 894ea0a

Please sign in to comment.