Skip to content
Snippets Groups Projects
Commit f6abf9d0 authored by Bastien Montagne's avatar Bastien Montagne
Browse files

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

We did not clear preview or smoothscroll timers pointers in copy code...
parent e5917d62
No related branches found
Tags
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment