Fix (unreported) crash when duplicating a FileBrowser window in preview draw mode.

We did not clear preview or smoothscroll timers pointers in copy code...
This commit is contained in:
Bastien Montagne 2018-02-09 16:13:13 +01:00
parent 97597ed600
commit ea9099473a
Notes: blender-bot 2023-02-14 06:17:12 +01:00
Referenced by issue #53683, 2.79a release
1 changed files with 3 additions and 0 deletions

View File

@ -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);