comparison src/video/x11/SDL_x11events.c @ 2323:4ac07ae446d3

Fixed many valgrind errors. But, I broke testdyngl.
author Bob Pendleton <bob@pendleton.com>
date Thu, 06 Mar 2008 23:07:02 +0000
parents 1a8bab15a45d
children 3202e4826c57
comparison
equal deleted inserted replaced
2322:c25d45b7add3 2323:4ac07ae446d3
49 wmmsg.event.xevent = xevent; 49 wmmsg.event.xevent = xevent;
50 SDL_SendSysWMEvent(&wmmsg); 50 SDL_SendSysWMEvent(&wmmsg);
51 } 51 }
52 52
53 data = NULL; 53 data = NULL;
54 for (i = 0; i < videodata->numwindows; ++i) { 54 if (videodata &&
55 if (videodata->windowlist[i]->window == xevent.xany.window) { 55 videodata->windowlist) {
56 data = videodata->windowlist[i]; 56 for (i = 0; i < videodata->numwindows; ++i) {
57 } 57 if ((videodata->windowlist[i] != NULL) &&
58 (videodata->windowlist[i]->window == xevent.xany.window)) {
59 data = videodata->windowlist[i];
60 break;
61 }
62 }
58 } 63 }
59 if (!data) { 64 if (!data) {
60 return; 65 return;
61 } 66 }
62 67