Skip to content

Commit ff88348

Browse files
committed
Fix memory leak of g_array_free
1 parent 429dbf3 commit ff88348

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

glib_compat/garray.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,7 @@ gchar *g_array_free (GArray *farray,
333333

334334
/* if others are holding a reference, preserve the wrapper but do free/return the data */
335335
//if (!g_atomic_ref_count_dec (&array->ref_count))
336-
flags |= PRESERVE_WRAPPER;
336+
// flags |= PRESERVE_WRAPPER;
337337

338338
return array_free (array, flags);
339339
}

0 commit comments

Comments
 (0)