Skip to content

Commit

Permalink
cre: free callback forwarder on quit (#1668)
Browse files Browse the repository at this point in the history
  • Loading branch information
benoit-pierre authored Oct 12, 2023
1 parent b6eb2fb commit 9110706
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cre.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4122,6 +4122,10 @@ int luaopen_cre(lua_State *L) {

// Library finalizer (c.f., dlopen(3)). This serves no real purpose except making Valgrind's output slightly more useful.
__attribute__((destructor)) static void cre_teardown(void) {
if (cre_callback_forwarder) {
delete cre_callback_forwarder;
cre_callback_forwarder = NULL;
}
HyphMan::uninit();
ShutdownFontManager();
CRLog::setLogger( NULL );
Expand Down

0 comments on commit 9110706

Please sign in to comment.