From 6dc13b60eaef3bef964ca2c61a809b04d7b0be08 Mon Sep 17 00:00:00 2001 From: kevingpqi123 Date: Mon, 23 Dec 2024 17:59:52 +0800 Subject: [PATCH] Fix the memory leak of the NativeWindow on the OHOS platform. (#2634) --- src/platform/ohos/GPUDrawable.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/platform/ohos/GPUDrawable.cpp b/src/platform/ohos/GPUDrawable.cpp index a7093e23c7..9762bd6ffa 100644 --- a/src/platform/ohos/GPUDrawable.cpp +++ b/src/platform/ohos/GPUDrawable.cpp @@ -37,6 +37,7 @@ GPUDrawable::GPUDrawable(NativeWindow* nativeWindow, EGLContext eglContext) } GPUDrawable::~GPUDrawable() { + OH_NativeWindow_DestroyNativeWindow(nativeWindow); } void GPUDrawable::updateSize() {