From 71e4819490fa05b7841aab1722335da024738389 Mon Sep 17 00:00:00 2001 From: Keegan McAllister Date: Fri, 27 Sep 2013 13:43:02 -0700 Subject: [PATCH] Fix memory leak from bad refcounting CreateSkiaDrawTargetForFBO will increment the refcount on grContext, so we don't need to do it as well. --- azure-c.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/azure-c.cpp b/azure-c.cpp index ee3ad5f..5a20e0e 100644 --- a/azure-c.cpp +++ b/azure-c.cpp @@ -236,7 +236,6 @@ extern "C" AzDrawTargetRef AzCreateSkiaDrawTargetForFBO(AzSkiaSharedGLContextRef aGLContext, AzIntSize *aSize, AzSurfaceFormat aFormat) { SkNativeSharedGLContext *sharedGLContext = static_cast(aGLContext); GrContext *grContext = sharedGLContext->getGrContext(); - grContext->AddRef(); gfx::IntSize *size = reinterpret_cast(aSize); gfx::SurfaceFormat surfaceFormat = static_cast(aFormat); RefPtr target = gfx::Factory::CreateSkiaDrawTargetForFBO(sharedGLContext->getFBOID(),