Fix crashes on Symbian related to memory allocation.