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; } }