Mercurial > sdl-ios-xcode
annotate Xcode/TemplatesForXcodeSnowLeopard/SDL Cocoa Application/English.lproj/SDLMain.nib/info.nib @ 5126:d79ff339d1f2
Fixed bug #1056 (Frequent crashes in Touch events by simply touching the screen)
Joseba GarcĂa Echebarria 2010-12-15 01:55:22 PST
I believe the crash is caused by a check not being performed on wether an
SDL_Touch element is NULL before using it in the SDL_SendTouchMotion function
in src/events/SDL_touch.c around line 400.
Judging from the rest of the code, there's a missing
if (!touch) {
return 0;
}
before using "touch" as SDL_GetFinger(), SDL_GetFingerIndexId() use
touch->num_fingers without checking.
I can attach a patch if you like. It seems pretty straightforward, though.
I have yet to discover why touch is being returned as NULL as this error is
only triggered when an actual gesture has been performed, maybe something
related to SDL_AddTouch()?
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Fri, 28 Jan 2011 10:21:58 -0800 |
parents | d44a0a913aa2 |
children |
rev | line source |
---|---|
3331 | 1 <?xml version="1.0" encoding="UTF-8"?> |
2 <!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
3 <plist version="1.0"> | |
4 <dict> | |
5 <key>IBDocumentLocation</key> | |
6 <string>62 117 356 240 0 0 1152 848 </string> | |
7 <key>IBEditorPositions</key> | |
8 <dict> | |
9 <key>29</key> | |
10 <string>62 362 195 44 0 0 1152 848 </string> | |
11 </dict> | |
12 <key>IBFramework Version</key> | |
13 <string>291.0</string> | |
14 <key>IBOpenObjects</key> | |
15 <array> | |
16 <integer>29</integer> | |
17 </array> | |
18 <key>IBSystem Version</key> | |
19 <string>6L60</string> | |
20 </dict> | |
21 </plist> |