diff options
author | celestar <celestar@openttd.org> | 2005-01-11 12:15:08 +0000 |
---|---|---|
committer | celestar <celestar@openttd.org> | 2005-01-11 12:15:08 +0000 |
commit | 1feae2083d6c1a8c7c1470149b190476793376cb (patch) | |
tree | e79f6aa60d77e1aa79491ffc915617be61fc9d2c | |
parent | 5fac6142e849c08279a893f24fe50e5840e94813 (diff) | |
download | openttd-1feae2083d6c1a8c7c1470149b190476793376cb.tar.xz |
(svn r1481) -Fix: [ 1099891 ] Added a return in DispatchLeftClickEvent which prevents reading of free'd memory (tamlin)
-rw-r--r-- | window.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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); |