From 175a7314e8e927128787feeb7ba5f42530f0a319 Mon Sep 17 00:00:00 2001 From: Good Guy Date: Tue, 27 Dec 2022 15:26:33 -0700 Subject: [PATCH] fix mistake of not checking both parts in --- cinelerra-5.1/cinelerra/cache.C | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/cinelerra-5.1/cinelerra/cache.C b/cinelerra-5.1/cinelerra/cache.C index 7c640d9e..9186f1f0 100644 --- a/cinelerra-5.1/cinelerra/cache.C +++ b/cinelerra-5.1/cinelerra/cache.C @@ -117,14 +117,15 @@ File* CICache::check_out(Asset *asset, EDL *edl, int block) // cache deleted during checkout, destroy this if( users == 1 ) { - current->Garbage::remove_user(); + remove_user(); total_lock->unlock(); return 0; } //printf("users: %i \n", users ); - - current->Garbage::remove_user(); + EDL *parent = edl->parent_edl; + if(parent) + remove_user(); total_lock->unlock(); //printf("check out %p %lx %s\n", current, tid, asset->path); return current ? current->file : 0; -- 2.26.2