Ticket #5340: block_cache_dbg.diff

File block_cache_dbg.diff, 557 bytes (added by romain, 12 years ago)
  • block_cache.cpp

     
    16251626    if (cache->num_dirty_blocks > 0)
    16261627        cache->num_dirty_blocks--;
    16271628
    1628     if (data == block->current_data)
     1629    if (data == block->current_data) {
    16291630        block->is_dirty = false;
     1631#if BLOCK_CACHE_DEBUG_CHANGED
     1632        if (block->compare != NULL) {
     1633            cache->Free(block->compare);
     1634            block->compare = NULL;
     1635        }
     1636#endif
     1637    }
    16301638
    16311639    if (previous != NULL) {
    16321640        previous->blocks.Remove(block);