From 75d17d8ad4c6a18f609c95db01043037930c3ced Mon Sep 17 00:00:00 2001 From: Mira Grudzinska Date: Thu, 30 May 2024 19:31:50 +0200 Subject: [PATCH] examples: fix heap-use-after-free in Capi.cpp --- examples/Capi.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/Capi.cpp b/examples/Capi.cpp index 60086900..94f6af51 100644 --- a/examples/Capi.cpp +++ b/examples/Capi.cpp @@ -318,7 +318,8 @@ int main(int argc, char **argv) elm_transit_effect_add(transit, transitCb, view, nullptr); elm_run(); - + elm_transit_del(transit); + tvg_canvas_destroy(canvas); free(buffer); tvg_animation_del(animation);