[glib: 1/19] Plug a leak
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib: 1/19] Plug a leak
- Date: Mon, 4 Jan 2021 12:55:59 +0000 (UTC)
commit 6931edc28febde1940094ef69585d2dd6eb4a08e
Author: Руслан Ижбулатов <lrn1986 gmail com>
Date: Wed Nov 18 15:19:51 2020 +0000
Plug a leak
gio/gwin32appinfo.c | 2 ++
1 file changed, 2 insertions(+)
---
diff --git a/gio/gwin32appinfo.c b/gio/gwin32appinfo.c
index 8871acc9d..5ff1d257e 100644
--- a/gio/gwin32appinfo.c
+++ b/gio/gwin32appinfo.c
@@ -1273,8 +1273,10 @@ decide_which_id_to_use (const gunichar2 *program_id,
if (return_handler_id_u8)
*return_handler_id_u8 = g_steal_pointer (&handler_id_u8);
+ g_clear_pointer (&handler_id_u8, g_free);
if (return_handler_id_u8_folded)
*return_handler_id_u8_folded = g_steal_pointer (&handler_id_u8_folded);
+ g_clear_pointer (&handler_id_u8_folded, g_free);
if (return_id == NULL && return_key)
*return_key = g_steal_pointer (&key);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]