Credit Andrew - minor bug fixes and plugin update
[goodguy/cinelerra.git] / cinelerra-5.1 / cinelerra / cache.C
index a93f1e1b994f7d800ad08d61e8e3deeff11f74c7..7c640d9e76da927bbf44c1df2efe83e222e75d57 100644 (file)
@@ -117,11 +117,14 @@ File* CICache::check_out(Asset *asset, EDL *edl, int block)
 
 // cache deleted during checkout, destroy this
        if( users == 1 ) {
-               remove_user();
+               current->Garbage::remove_user();
+               total_lock->unlock();
                return 0;
        }
 
-       remove_user();
+       //printf("users: %i \n", users );
+       
+       current->Garbage::remove_user();
        total_lock->unlock();
 //printf("check out %p %lx %s\n", current, tid, asset->path);
        return current ? current->file : 0;