diff options
Diffstat (limited to 'source/blender/windowmanager/intern')
-rw-r--r-- | source/blender/windowmanager/intern/wm_jobs.c | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/source/blender/windowmanager/intern/wm_jobs.c b/source/blender/windowmanager/intern/wm_jobs.c index 80f1c680931..3ebfac4928c 100644 --- a/source/blender/windowmanager/intern/wm_jobs.c +++ b/source/blender/windowmanager/intern/wm_jobs.c @@ -355,9 +355,16 @@ void WM_jobs_kill(wmWindowManager *wm, void *owner, void *startjob) { wmJob *steve; - for(steve= wm->jobs.first; steve; steve= steve->next) - if(steve->owner==owner || steve->startjob==startjob) - wm_jobs_kill_job(wm, steve); + steve= wm->jobs.first; + while(steve) { + if(steve->owner==owner || steve->startjob==startjob) { + wmJob* bill = steve; + steve= steve->next; + wm_jobs_kill_job(wm, bill); + } else { + steve= steve->next; + } + } } |