testEverything fails make check
@ptomato
Submitted by Philip Chimento Link to original bug (#761068)
Description
There seems to be some undefined behavior around const return values of introspected functions. On one system testEverything crashes, reporting that it tried to free() memory that wasn't malloc()ed. On another system I get no crash, but the testUtf8() test fails:
Gjs-Message: JS LOG: Expected nonconst ♥ utf8 (string) but was (string)
The attached patch seems to fix the problem, but please review it carefully as I'm not entirely confident of what I'm doing.
Edited by Philip Chimento