Merging r50045 through r50048 from trunk into soc-2011-tomato
authorSergey Sharybin <sergey.vfx@gmail.com>
Mon, 20 Aug 2012 15:17:17 +0000 (15:17 +0000)
committerSergey Sharybin <sergey.vfx@gmail.com>
Mon, 20 Aug 2012 15:17:17 +0000 (15:17 +0000)
source/blender/blenkernel/intern/seqcache.c

index d79f23e8979a6457be67eaec340d5e64a8a163bd..57db188472ceb2f071b6a4f260a4a9a902ae6c49 100644 (file)
@@ -68,6 +68,7 @@ static struct MovieCache *moviecache = NULL;
 static struct SeqPreprocessCache *preprocess_cache = NULL;
 
 static void preprocessed_cache_destruct(void);
+static void preprocessed_cache_clean(void);
 
 static int seq_cmp_render_data(const SeqRenderData *a, const SeqRenderData *b)
 {
@@ -191,6 +192,8 @@ void BKE_sequencer_cache_cleanup(void)
                IMB_moviecache_free(moviecache);
                moviecache = IMB_moviecache_create("seqcache", sizeof(SeqCacheKey), seqcache_hashhash, seqcache_hashcmp);
        }
+
+       preprocessed_cache_clean();
 }
 
 static int seqcache_key_check_seq(void *userkey, void *userdata)