geany/geany — pull request #13 by kugel- (2011-11-13 10:23:49+00:00)
Title: Prevent double free in filetypes_detect_from_file_internal().

Some glib versions (e.g. 2.28.8) don't actually create a GMatchInfo
in g_regex_match() if it retuns false (the documentation states it does).
This leads to a double free since the match_info paramter is unchanged,
and passed to g_match_info_free() (as according to the docs).

Set the match to NULL to prevent double free which also works with non-broken
glib.