Fix a crash which occured with some graphic libraries.

Fix a small bug that caused the emulator to crash when used with some
graphic libraries.

Change-Id: Ifb7e0b11a8302d0538632dac467d187dfcdfda47
1 file changed