fix cache bug in last update
authorGood Guy <good1.2guy@gmail.com>
Sat, 20 Jun 2020 23:32:20 +0000 (17:32 -0600)
committerGood Guy <good1.2guy@gmail.com>
Sat, 20 Jun 2020 23:32:20 +0000 (17:32 -0600)
cinelerra-5.1/cinelerra/cache.C

index ec219d2180e669e7399d087115180fc766d21c7a..3a0d118e0397f01a28b227d6d2796c186df6e97b 100644 (file)
@@ -176,7 +176,7 @@ int CICache::delete_entry(char *path)
                while( current && strcmp(current->asset->path, path) !=0 )
                        current = NEXT;
                if( !current ) break;
                while( current && strcmp(current->asset->path, path) !=0 )
                        current = NEXT;
                if( !current ) break;
-               if( current->checked_out ) {
+               if( !current->checked_out ) {
                        remove_pointer(current);
                        break;
                }
                        remove_pointer(current);
                        break;
                }