issues/1309: gc update.

I got some strange crashes when compiling using -O3. bisecting down I found
that memory.c was the trigger file. With these changes I can load the example
file from issues/1309 when fontforge is compiled with -O3.