diff options
author | Přemysl Janouch <p.janouch@gmail.com> | 2015-11-29 17:55:35 +0100 |
---|---|---|
committer | Přemysl Janouch <p.janouch@gmail.com> | 2015-11-29 17:55:35 +0100 |
commit | 2ba8908024158fab553c79f3b45b9e4b64845edb (patch) | |
tree | 134a663210e47a0493756b3751686439bba7ae65 /degesch.c | |
parent | 4a287a724e257dbc9cd9b8a0c48bd15451acd2fe (diff) | |
download | xK-2ba8908024158fab553c79f3b45b9e4b64845edb.tar.gz xK-2ba8908024158fab553c79f3b45b9e4b64845edb.tar.xz xK-2ba8908024158fab553c79f3b45b9e4b64845edb.zip |
degesch: fix timer hook resource leak
Diffstat (limited to 'degesch.c')
-rw-r--r-- | degesch.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -7747,6 +7747,9 @@ lua_timer_hook_dispatch (void *user_data) plugin->super.name, "timer hook", e->message); error_free (e); } + + // There's no need to keep the hook around once the timer is dispatched + lua_cache_invalidate (L, hook); } // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - |