Skip to content

Commit

Permalink
Fix memory leak of g_array_free
Browse files Browse the repository at this point in the history
  • Loading branch information
wtdcode committed Oct 13, 2024
1 parent 429dbf3 commit ff88348
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion glib_compat/garray.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit ff88348

Please sign in to comment.