mirror of
https://github.com/koreader/koreader
synced 2024-10-31 21:20:20 +00:00
14 lines
246 B
Lua
14 lines
246 B
Lua
local CacheItem = require("cacheitem")
|
|
local DEBUG = require("dbg")
|
|
|
|
local TileCacheItem = CacheItem:new{}
|
|
|
|
function TileCacheItem:onFree()
|
|
if self.bb.free then
|
|
DEBUG("free blitbuffer", self.bb)
|
|
self.bb:free()
|
|
end
|
|
end
|
|
|
|
return TileCacheItem
|