From 185836d278fe1c43697e8b8fbdb5af00c208cf01 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 612e9f54..e4721260 100644 --- a/examples/Capi.cpp +++ b/examples/Capi.cpp @@ -319,7 +319,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);