Fossil

Diff
Login

Differences From Artifact [ffb1c7882e]:

To Artifact [70a2096d6b]:


380
381
382
383
384
385
386

387

388
389
390
391
392
393
394
380
381
382
383
384
385
386
387

388
389
390
391
392
393
394
395







+
-
+









/* release the given working buffer back to the cache */
static void release_work_buffer(struct render *rndr, struct Blob *buf){
  if( !buf ) return;
  rndr->iDepth--;
  blob_reset(buf);
  if( rndr->nBlobCache < 
  if( rndr->nBlobCache < (int)(sizeof(rndr->aBlobCache)/sizeof(rndr->aBlobCache[0])) ){
        (int)(sizeof(rndr->aBlobCache)/sizeof(rndr->aBlobCache[0])) ){
    rndr->aBlobCache[rndr->nBlobCache++] = buf;
  }else{
    fossil_free(buf);
  }
}