Fixed memory corruption bug involving temporary objects which caused textures to fail to load.