diff options
author | Bastien Montagne <montagne29@wanadoo.fr> | 2018-02-09 18:13:13 +0300 |
---|---|---|
committer | Bastien Montagne <montagne29@wanadoo.fr> | 2018-02-09 18:25:08 +0300 |
commit | f6abf9d0ba6f88d7eab07dfc66ac7029eeb3eab3 (patch) | |
tree | c186919fd9e0324abbdc9057687668e3ff820d1d | |
parent | e5917d624ea59e5253cc901cb545cb53fe7170d3 (diff) |
Fix (unreported) crash when duplicating a FileBrowser window in preview draw mode.
We did not clear preview or smoothscroll timers pointers in copy code...
-rw-r--r-- | source/blender/editors/space_file/space_file.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/editors/space_file/space_file.c b/source/blender/editors/space_file/space_file.c index 287b98fa589..3657e4d2a1f 100644 --- a/source/blender/editors/space_file/space_file.c +++ b/source/blender/editors/space_file/space_file.c @@ -188,6 +188,9 @@ static SpaceLink *file_duplicate(SpaceLink *sl) /* clear or remove stuff from old */ sfilen->op = NULL; /* file window doesn't own operators */ + sfilen->previews_timer = NULL; + sfilen->smoothscroll_timer = NULL; + if (sfileo->params) { sfilen->files = filelist_new(sfileo->params->type); sfilen->params = MEM_dupallocN(sfileo->params); |