add finalizers

This commit is contained in:
petrucci4prez 2017-07-19 02:18:57 -04:00
parent 7fecbdab4a
commit 003dbaa3b9
3 changed files with 6 additions and 1 deletions

2
core

@ -1 +1 @@
Subproject commit cf0fe0434d2cd48f9f255c5371f280c1cbe07f1f
Subproject commit 05e90da34584f98a6b7d46f7b22e8701a5b3d285

View File

@ -123,6 +123,8 @@ end
_unrequire('Super')
_unrequire('Color')
_unrequire('Gradient')
_unrequire('Widget')
_unrequire('Patterns')
_unrequire = nil

View File

@ -1,6 +1,7 @@
local M = {}
local Color = require 'Color'
local Util = require 'Util'
local WHITE = 0xffffffff
@ -65,4 +66,6 @@ M.TRANSPARENT_BLUE = Color.Gradient{
Color.ColorStop{hex_rgba = BLUE1, stop = 1.0, force_alpha = 1.0}
}
M = Util.set_finalizer(M, function() print('Cleaning up Patterns.lua') end)
return M