Fix memory leak of g_array_free

This commit is contained in:
mio
2024-10-13 13:39:21 +08:00
parent 9f578946d5
commit 579317bb21

View File

@@ -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);
}