• Sam Lantinga's avatar
    Fixed bug #1027 · 7a1c6519
    Sam Lantinga authored
    Vittorio Giovara      2010-07-17 19:21:36 PDT
    
    fix the double free error
    
    in SDL_uikitview the variable 'textfield' is initialialized and set to
    autorelease.
    however in the dealloc method a second [release] is sent.
    If the textfield has not been set to nil before (with a viewDidUnload for
    example) this can lead to awful hard-to-find crashes when the SDL code
    terminates.
    
    the error message is
    -[textfield release] message sent to deallocated instance 0x4e5fa90
    
    the fix is simple, just release the object as soon as it is added to the
    subview, see attached patch
    7a1c6519
Name
Last commit
Last update
..
SDL_uikitappdelegate.h Loading commit data...
SDL_uikitappdelegate.m Loading commit data...
SDL_uikitevents.h Loading commit data...
SDL_uikitevents.m Loading commit data...
SDL_uikitkeyboard.h Loading commit data...
SDL_uikitopengles.h Loading commit data...
SDL_uikitopengles.m Loading commit data...
SDL_uikitopenglview.h Loading commit data...
SDL_uikitopenglview.m Loading commit data...
SDL_uikitvideo.h Loading commit data...
SDL_uikitvideo.m Loading commit data...
SDL_uikitview.h Loading commit data...
SDL_uikitview.m Loading commit data...
SDL_uikitwindow.h Loading commit data...
SDL_uikitwindow.m Loading commit data...
jumphack.c Loading commit data...
jumphack.h Loading commit data...
keyinfotable.h Loading commit data...