From 4d0b9f049b79322959e4aefd95eedc665e87d087 Mon Sep 17 00:00:00 2001 From: MihailRis Date: Fri, 3 Jan 2025 00:07:25 +0300 Subject: [PATCH] fix small dumb legacy memory leak --- src/graphics/core/GLTexture.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/graphics/core/GLTexture.cpp b/src/graphics/core/GLTexture.cpp index 3756d758..a446a88c 100644 --- a/src/graphics/core/GLTexture.cpp +++ b/src/graphics/core/GLTexture.cpp @@ -60,7 +60,7 @@ std::unique_ptr GLTexture::readData() { glGetTexImage(GL_TEXTURE_2D, 0, GL_RGBA, GL_UNSIGNED_BYTE, data.get()); glBindTexture(GL_TEXTURE_2D, 0); return std::make_unique( - ImageFormat::rgba8888, width, height, data.release() + ImageFormat::rgba8888, width, height, std::move(data) ); }