From d12db2f1a344c021cc85d6c960fb9e8409bef160 Mon Sep 17 00:00:00 2001 From: Marek Kasik Date: Mon, 15 Jan 2024 16:40:57 +0100 Subject: [PATCH] printers: Move ownership of GHashTable to the recipient Once we call callback passed to the get_ipp_attributes_async() we should not try to free produced data but keep this to the caller. Fixes #2843 --- panels/printers/pp-utils.c | 1 + 1 file changed, 1 insertion(+) diff --git a/panels/printers/pp-utils.c b/panels/printers/pp-utils.c index be781b306..25fa5652d 100644 --- a/panels/printers/pp-utils.c +++ b/panels/printers/pp-utils.c @@ -1213,6 +1213,7 @@ get_ipp_attributes_idle_cb (gpointer user_data) GIAData *data = (GIAData *) user_data; data->callback (data->result, data->user_data); + data->result = NULL; return FALSE; }