Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTon Roosendaal <ton@blender.org>2012-11-01 20:15:00 +0400
committerTon Roosendaal <ton@blender.org>2012-11-01 20:15:00 +0400
commit7b9360e05ac1e3623a370b47444a82fec7c1211b (patch)
treef996f5b4c76c7947c34c51016a7c3618dbc3ac1c /source/blender
parentf4e5404e4ae1bf0c5c45220f87e981fbc4c3ab98 (diff)
Bugfix [#33036] Invalid memory read in wm_handlers_do (valgrind warning)
Diffstat (limited to 'source/blender')
-rw-r--r--source/blender/windowmanager/intern/wm_event_system.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/windowmanager/intern/wm_event_system.c b/source/blender/windowmanager/intern/wm_event_system.c
index 26657cd0611..9798f2828cd 100644
--- a/source/blender/windowmanager/intern/wm_event_system.c
+++ b/source/blender/windowmanager/intern/wm_event_system.c
@@ -1880,6 +1880,10 @@ static int wm_handlers_do(bContext *C, wmEvent *event, ListBase *handlers)
{
int action = wm_handlers_do_intern(C, event, handlers);
+ /* fileread case */
+ if (CTX_wm_window(C) == NULL)
+ return action;
+
if (!ELEM(event->type, MOUSEMOVE, INBETWEEN_MOUSEMOVE) && !ISTIMER(event->type)) {
/* test for CLICK events */