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.
Merge pull request #1331 from monkeyiq/2014apr/issues/1309

issues/1309: gc update.