From 778b5c4d378226658265eeb7dfc0e9d9c27fe131 Mon Sep 17 00:00:00 2001 From: Georg Hopp Date: Wed, 6 Aug 2014 19:42:55 +0100 Subject: [PATCH] The event_methods hash is statically generated and should not be freed. --- src/event_handler_class_cleanup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/event_handler_class_cleanup.c b/src/event_handler_class_cleanup.c index 933f655..81da87c 100644 --- a/src/event_handler_class_cleanup.c +++ b/src/event_handler_class_cleanup.c @@ -31,7 +31,7 @@ TR__eventHandlerClassCleanup(TR_class_ptr class) while (class) { struct c_TR_EventHandler_vars * vars; vars = (struct c_TR_EventHandler_vars *)class->vars; - TR_delete(vars->event_methods); + TR_hashCleanup(vars->event_methods); class = class->parent; } }