From 2f3f55c831723017040b9e44ca4b629bbabee67e Mon Sep 17 00:00:00 2001 From: Evangelos Ribeiro Tzaras Date: Thu, 16 Mar 2023 13:13:46 +0100 Subject: [PATCH] new-call-box: Don't leak CallsOrigin get_selected_origin () does not need to take a reference on CallsOrigin --- src/calls-new-call-box.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calls-new-call-box.c b/src/calls-new-call-box.c index b5b6d30..ea12ccc 100644 --- a/src/calls-new-call-box.c +++ b/src/calls-new-call-box.c @@ -74,7 +74,7 @@ get_selected_origin (CallsNewCallBox *self) if (model && index >= 0) origin = g_list_model_get_item (model, index); - return g_steal_pointer (&origin); + return origin; }