Skip to content

Commit

Permalink
Fix memory leaks in Dummy and Test drivers...
Browse files Browse the repository at this point in the history
  • Loading branch information
eddiecohen committed May 22, 2013
1 parent 0a3d8bb commit ff1cc6c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Source/Drivers/DummyDevice/DummyDevice.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,7 @@ class OzDepthStream : public OzStream
pFrame->timestamp = frameId*33000;

raiseNewFrame(pFrame);
getServices().releaseFrame(pFrame);

frameId++;

Expand Down Expand Up @@ -255,6 +256,7 @@ class OzImageStream : public OzStream
pFrame->timestamp = frameId*33000;

raiseNewFrame(pFrame);
getServices().releaseFrame(pFrame);

frameId++;
}
Expand Down
1 change: 1 addition & 0 deletions Source/Drivers/TestDevice/TestDevice.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ class TestStream : public oni::driver::StreamBase
OniFrame* pFrame = pStream->getServices().acquireFrame();
pStream->BuildFrame(pFrame);
pStream->raiseNewFrame(pFrame);
pStream->getServices().releaseFrame(pFrame);
}

} while (count > 0);
Expand Down

0 comments on commit ff1cc6c

Please sign in to comment.