Tests: memory fixes and use G_SLICE=always-malloc
When running tests using G_SLICE=always-malloc
, all cogl tests crashe. And there are crashes when using pipeline snippets.
Also, mutter interactive tests might give false-positives in slow machines (or under valgrdind).
So fix these and add other memory related fixes and improvements.
To ensure we don't introduce such issues anymore, and to onour MALLOC_CHECK_
is used anywhere (as per !578 (merged)), set G_SLICE=always-malloc
when running tests.
Edited by Marco Trevisan