Add g_free after g_array_free if gboolean is False
The following Merge Request (MR) has been forwarded from GitHub in order to prevent the GNOME Project from losing contributions coming from un-official channels. And for contributors to not see their valuable contributions not being accounted for.
Relevant information:
Github handle: BugBeginner
MR URL: https://github.com/GNOME/pygobject/pull/4
Patch URL: https://github.com/GNOME/pygobject/pull/4.patch
Body of the MR:
In Glib's g_array_free document, it said" The element data if free_segment is FALSE, otherwise NULL. The element data should be freed using g_free(). " So if the second parameter of g_array_free is FALSE, the array's element, i.e., array->data should be freed by g_free.