Skip to content

Commit

Permalink
fix(🤖): makeImageFromHardwareBuffer memory leak (#2389)
Browse files Browse the repository at this point in the history
  • Loading branch information
mrousavy authored Apr 19, 2024
1 parent c6df69c commit 61571c3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ SkiaOpenGLSurfaceFactory::makeImageFromHardwareBuffer(void *buffer) {
sk_sp<SkImage> image = SkImages::BorrowTextureFrom(
ThreadContextHolder::ThreadSkiaOpenGLContext.directContext.get(),
backendTex, kTopLeft_GrSurfaceOrigin, kRGBA_8888_SkColorType,
kOpaque_SkAlphaType, nullptr);
kOpaque_SkAlphaType, nullptr, deleteImageProc, deleteImageCtx);
return image;
#else
throw std::runtime_error(
Expand Down

0 comments on commit 61571c3

Please sign in to comment.