add finalizers
This commit is contained in:
parent
7fecbdab4a
commit
003dbaa3b9
2
core
2
core
|
@ -1 +1 @@
|
||||||
Subproject commit cf0fe0434d2cd48f9f255c5371f280c1cbe07f1f
|
Subproject commit 05e90da34584f98a6b7d46f7b22e8701a5b3d285
|
2
main.lua
2
main.lua
|
@ -123,6 +123,8 @@ end
|
||||||
_unrequire('Super')
|
_unrequire('Super')
|
||||||
_unrequire('Color')
|
_unrequire('Color')
|
||||||
_unrequire('Gradient')
|
_unrequire('Gradient')
|
||||||
|
_unrequire('Widget')
|
||||||
|
_unrequire('Patterns')
|
||||||
|
|
||||||
_unrequire = nil
|
_unrequire = nil
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
local M = {}
|
local M = {}
|
||||||
|
|
||||||
local Color = require 'Color'
|
local Color = require 'Color'
|
||||||
|
local Util = require 'Util'
|
||||||
|
|
||||||
local WHITE = 0xffffffff
|
local WHITE = 0xffffffff
|
||||||
|
|
||||||
|
@ -65,4 +66,6 @@ M.TRANSPARENT_BLUE = Color.Gradient{
|
||||||
Color.ColorStop{hex_rgba = BLUE1, stop = 1.0, force_alpha = 1.0}
|
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
|
return M
|
||||||
|
|
Loading…
Reference in New Issue