Skip to content

Commit

Permalink
Merge pull request BradLarson#1098 from erysaj/fix-memory-leak
Browse files Browse the repository at this point in the history
fix a couple of memory leaks
  • Loading branch information
BradLarson committed Jul 29, 2013
2 parents 2f8e61c + d434d54 commit 5a1ea83
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions framework/Source/GPUImageRawDataOutput.m
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,19 @@ - (void)destroyDataFBO;
glDeleteRenderbuffers(1, &dataRenderbuffer);
dataRenderbuffer = 0;
}

if (rawDataTextureCache)
{
CVOpenGLESTextureCacheFlush(rawDataTextureCache, 0);
CFRelease(rawDataTextureCache);
rawDataTextureCache = 0;
}

if (renderTarget)
{
CVPixelBufferRelease(renderTarget);
renderTarget = 0;
}
});
}

Expand Down

0 comments on commit 5a1ea83

Please sign in to comment.