Mercurial > sdl-ios-xcode
view INSTALL @ 5051:a69e36365766
Fixed bug #1027
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
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Wed, 19 Jan 2011 23:45:29 -0800 |
parents | 00e7c6b7eb03 |
children |
line wrap: on
line source
To compile and install SDL: 0. If you have downloaded this from the website, skip to the next step. If you have checked this out from subversion, you'll need to run ./autogen.sh to build the configure script. 1. Run './configure; make; make install' If you are compiling for Windows using gcc, read the FAQ at: http://www.libsdl.org/faq.php?action=listentries&category=4#42 If you are compiling using Visual C++ on Win32, you should read the file VisualC.html 2. Look at the example programs in ./test, and check out the HTML documentation in ./docs to see how to use the SDL library. 3. Join the SDL developer mailing list by sending E-mail to sdl-request@libsdl.org and put "subscribe" in the subject of the message. Or alternatively you can use the web interface: http://www.libsdl.org/mailing-list.php That's it! Sam Lantinga <slouken@libsdl.org>