From: Good Guy Date: Tue, 27 Dec 2022 22:26:33 +0000 (-0700) Subject: fix mistake of not checking both parts in X-Git-Tag: 2022-12~2 X-Git-Url: https://cinelerra-gg.org/git/?a=commitdiff_plain;h=175a7314e8e927128787feeb7ba5f42530f0a319;p=goodguy%2Fcinelerra.git fix mistake of not checking both parts in --- 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;