WINTERMUTE: Fix comparison in renderTicket.
WINTERMUTE: Fix leak on incomplete image load.