(svn r1481) -Fix: [ 1099891 ] Added a return in DispatchLeftClickEvent which prevents reading of free'd memory (tamlin)

This commit is contained in:
celestar 2005-01-11 12:15:08 +00:00
parent 5fac6142e8
commit 1feae2083d
1 changed files with 1 additions and 0 deletions

View File

@ -53,6 +53,7 @@ void DispatchLeftClickEvent(Window *w, int x, int y) {
if (w->desc_flags & WDF_STD_BTN) {
if (e.click.widget == 0) {
DeleteWindow(w);
return;
} else {
if (e.click.widget == 1) {
StartWindowDrag(w);