Skip to content

Commit

Permalink
Fix memory leak
Browse files Browse the repository at this point in the history
Free data allocated for RGB frame buffer
  • Loading branch information
alexanderkoumis authored Jun 6, 2018
1 parent d387781 commit 098a6b3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lsd_slam_core/src/DataStructures/Frame.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ Frame::~Frame()
FrameMemory::getInstance().returnBuffer(data.idepthVar[level]);
}

FrameMemory::getInstance().returnBuffer(data.imageRGB[0]);
FrameMemory::getInstance().returnBuffer((float*)data.validity_reAct);
FrameMemory::getInstance().returnBuffer(data.idepth_reAct);
FrameMemory::getInstance().returnBuffer(data.idepthVar_reAct);
Expand Down

0 comments on commit 098a6b3

Please sign in to comment.