Skip to content

Commit

Permalink
Issue #9: using malloc instead of realloc
Browse files Browse the repository at this point in the history
  • Loading branch information
dzhoshkun committed Oct 29, 2018
1 parent 8d1378f commit ba99c16
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/epiphansdk/epiphansdk_video_source.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ VideoSourceEpiphanSDK::VideoSourceEpiphanSDK(
_full.height = 1080;
if (_colour == BGRA)
{
_bgra_data = reinterpret_cast<unsigned char*>(realloc(
_bgra_data, 4 * _full.width * _full.height * sizeof(unsigned char)
_bgra_data = reinterpret_cast<unsigned char*>(malloc(
4 * _full.width * _full.height * sizeof(unsigned char)
));
}
get_full_frame();
Expand Down

0 comments on commit ba99c16

Please sign in to comment.