Skip to content

Commit

Permalink
Fix the memory leak of the NativeWindow on the OHOS platform. (#2634)
Browse files Browse the repository at this point in the history
  • Loading branch information
kevingpqi123 authored Dec 23, 2024
1 parent 8eab9ce commit 6dc13b6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/platform/ohos/GPUDrawable.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ GPUDrawable::GPUDrawable(NativeWindow* nativeWindow, EGLContext eglContext)
}

GPUDrawable::~GPUDrawable() {
OH_NativeWindow_DestroyNativeWindow(nativeWindow);
}

void GPUDrawable::updateSize() {
Expand Down

0 comments on commit 6dc13b6

Please sign in to comment.