From 579317bb213cc79352bb97e84fdbf0325d079102 Mon Sep 17 00:00:00 2001 From: mio Date: Sun, 13 Oct 2024 13:39:21 +0800 Subject: [PATCH] Fix memory leak of g_array_free --- glib_compat/garray.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/glib_compat/garray.c b/glib_compat/garray.c index 2ffe559a..6cfc0fa5 100644 --- a/glib_compat/garray.c +++ b/glib_compat/garray.c @@ -333,7 +333,7 @@ gchar *g_array_free (GArray *farray, /* if others are holding a reference, preserve the wrapper but do free/return the data */ //if (!g_atomic_ref_count_dec (&array->ref_count)) - flags |= PRESERVE_WRAPPER; + // flags |= PRESERVE_WRAPPER; return array_free (array, flags); }