Fix for [#26205] Crash when duplicating window

* Timeline duplication code freed the original time caches too.
This commit is contained in:
Janne Karhu 2011-02-25 08:40:57 +00:00
parent 5005853d40
commit 47d2353f26
1 changed files with 1 additions and 1 deletions

View File

@ -638,7 +638,7 @@ static SpaceLink *time_duplicate(SpaceLink *sl)
SpaceTime *stime= (SpaceTime *)sl;
SpaceTime *stimen= MEM_dupallocN(stime);
time_cache_free(stimen);
stimen->caches.first = stimen->caches.last = NULL;
return (SpaceLink *)stimen;
}