Fix for [#26205] Crash when duplicating window
authorJanne Karhu <jhkarh@gmail.com>
Fri, 25 Feb 2011 08:40:57 +0000 (08:40 +0000)
committerJanne Karhu <jhkarh@gmail.com>
Fri, 25 Feb 2011 08:40:57 +0000 (08:40 +0000)
* Timeline duplication code freed the original time caches too.

source/blender/editors/space_time/space_time.c

index b70fc05460b6052ac303f53dbf27b0edf9bccf1a..65902c692c4f5523941f5c66a24e2cd1feac4c23 100644 (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;
 }