From 9033b2a09f4de3ad4e2e70d80841291c3e4fed9c Mon Sep 17 00:00:00 2001 From: Alexander Mikhaylenko Date: Wed, 9 Nov 2022 12:42:20 +0400 Subject: [PATCH] error: Fix propagation --- shared/retro-error-private.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/shared/retro-error-private.h b/shared/retro-error-private.h index d15c548..54c6cc3 100644 --- a/shared/retro-error-private.h +++ b/shared/retro-error-private.h @@ -170,7 +170,7 @@ G_BEGIN_DECLS * ]| */ #define retro_try_propagate(try, catch, dest) \ - retro_try (try, catch, { g_propagate_error (dest, catch); return; }) + retro_try (try, catch, { g_propagate_error (dest, g_steal_pointer (&catch)); return; }) /** * retro_try_propagate_val: @@ -251,6 +251,6 @@ G_BEGIN_DECLS * ]| */ #define retro_try_propagate_val(try, catch, dest, val) \ - retro_try (try, catch, { g_propagate_error (dest, catch); return (val); }) + retro_try (try, catch, { g_propagate_error (dest, g_steal_pointer (&catch)); return (val); }) G_END_DECLS -- GitLab