X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=driver%2Fsplash.c;h=4a5ff73375d03b6c53c3bdf4d0163bafe699987d;hb=4cecfc89e5e889c7232693897c06168fb378bd5c;hp=55c4e9be37398756e51e71b56ede4d3b1f00e4e8;hpb=cccbddbc4140cf9a06d7d95cc5c0ca36eb5d6e28;p=xscreensaver diff --git a/driver/splash.c b/driver/splash.c index 55c4e9be..4a5ff733 100644 --- a/driver/splash.c +++ b/driver/splash.c @@ -732,6 +732,7 @@ handle_splash_event (saver_info *si, XEvent *event) if (which && sp->pressed == which) { destroy_splash_window (si); + sp = si->sp_data; switch (which) { case 1: do_demo (si); break; @@ -747,8 +748,9 @@ handle_splash_event (saver_info *si, XEvent *event) /* click and release on the window but not in a button: treat that as "dismiss the splash dialog." */ destroy_splash_window (si); + sp = si->sp_data; } - sp->pressed = 0; + if (sp) sp->pressed = 0; update_splash_window (si); } break;