Skip to content

Commit

Permalink
fixed destroying simplebuffer in runtime by adding copBlock freeing
Browse files Browse the repository at this point in the history
  • Loading branch information
tehKaiN committed May 4, 2019
1 parent 5ec8573 commit 1e7e64e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/ace/managers/viewport/simplebuffer.c
Original file line number Diff line number Diff line change
Expand Up @@ -221,12 +221,11 @@ tSimpleBufferManager *simpleBufferCreate(void *pTags, ...) {

void simpleBufferDestroy(tSimpleBufferManager *pManager) {
logBlockBegin("simpleBufferDestroy()");
logWrite("Destroying bitmap...\n");
copBlockDestroy(pManager->sCommon.pVPort->pView->pCopList, pManager->pCopBlock);
if(pManager->pBack != pManager->pFront) {
bitmapDestroy(pManager->pBack);
}
bitmapDestroy(pManager->pFront);
logWrite("Freeing mem...\n");
memFree(pManager, sizeof(tSimpleBufferManager));
logBlockEnd("simpleBufferDestroy()");
}
Expand Down

0 comments on commit 1e7e64e

Please sign in to comment.