From ae2ad8d1ab9f9fc557de8dd51065d5dae77b98fe Mon Sep 17 00:00:00 2001 From: Brett Date: Wed, 15 May 2024 01:50:20 -0400 Subject: [PATCH] fix memory leak --- CMakeLists.txt | 2 +- include/blt/gfx/renderer/postprocess.h | 5 ++++- libraries/BLT | 2 +- libraries/imgui | 2 +- libraries/openal-soft | 2 +- 5 files changed, 8 insertions(+), 5 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 6936495..7cd7f6a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,6 +1,6 @@ cmake_minimum_required(VERSION 3.25) -set(BLT_GRAPHICS_VERSION 0.13.17) +set(BLT_GRAPHICS_VERSION 0.13.18) set(BLT_GRAPHICS_TEST_VERSION 0.0.1) project(BLT_WITH_GRAPHICS VERSION ${BLT_GRAPHICS_VERSION}) diff --git a/include/blt/gfx/renderer/postprocess.h b/include/blt/gfx/renderer/postprocess.h index 5dba75f..89e355c 100644 --- a/include/blt/gfx/renderer/postprocess.h +++ b/include/blt/gfx/renderer/postprocess.h @@ -80,7 +80,10 @@ namespace blt::gfx return true; } - virtual ~pp_step_t() = default; + virtual ~pp_step_t() + { + draw_buffer.destroy(); + } protected: frame_buffer_t draw_buffer; diff --git a/libraries/BLT b/libraries/BLT index 12169a7..a8b2bc2 160000 --- a/libraries/BLT +++ b/libraries/BLT @@ -1 +1 @@ -Subproject commit 12169a700195f23d5ebce54d0edb79bee4f8b0e1 +Subproject commit a8b2bc2d010480544c3162daa7384a252946bda1 diff --git a/libraries/imgui b/libraries/imgui index 231cbee..a1b0682 160000 --- a/libraries/imgui +++ b/libraries/imgui @@ -1 +1 @@ -Subproject commit 231cbee0fc4f59dbe5b8b853a11b08dc84e57c65 +Subproject commit a1b06823fe2d964a62fda99385499b218cf5cea5 diff --git a/libraries/openal-soft b/libraries/openal-soft index 111397c..6675317 160000 --- a/libraries/openal-soft +++ b/libraries/openal-soft @@ -1 +1 @@ -Subproject commit 111397c71a5f1c2c88e05da9c84edfdba2e472a4 +Subproject commit 6675317107257c2cc16c947b359d557821d85bf2