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
No known key found for this signature in database
GPG Key ID: DFF27E34A47CB873
1 changed files with 1 additions and 1 deletions

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