Mercurial > sdl-ios-xcode
annotate Xcode/SDLTest/Info-testdraw2.plist @ 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//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
3 <plist version="1.0"> | |
4 <dict> | |
5 <key>CFBundleDevelopmentRegion</key> | |
6 <string>English</string> | |
7 <key>CFBundleExecutable</key> | |
8 <string>testdraw2</string> | |
9 <key>CFBundleGetInfoString</key> | |
10 <string></string> | |
11 <key>CFBundleIconFile</key> | |
12 <string></string> | |
13 <key>CFBundleIdentifier</key> | |
14 <string></string> | |
15 <key>CFBundleInfoDictionaryVersion</key> | |
16 <string>6.0</string> | |
17 <key>CFBundleName</key> | |
18 <string></string> | |
19 <key>CFBundlePackageType</key> | |
20 <string>APPL</string> | |
21 <key>CFBundleShortVersionString</key> | |
22 <string></string> | |
23 <key>CFBundleSignature</key> | |
24 <string>????</string> | |
25 <key>CFBundleVersion</key> | |
26 <string>0.0.1d1</string> | |
27 <key>NSMainNibFile</key> | |
28 <string>SDLMain.nib</string> | |
29 <key>NSPrincipalClass</key> | |
30 <string>NSApplication</string> | |
31 </dict> | |
32 </plist> |