aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/help.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/help.c')
-rw-r--r--src/help.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/help.c b/src/help.c
index e06bda4..f69ba6f 100644
--- a/src/help.c
+++ b/src/help.c
@@ -235,8 +235,7 @@ teco_help_auto_complete(const gchar *topic_name, teco_string_t *insert)
topic_name ? strlen(topic_name) : 0, 0, insert);
}
-#ifndef NDEBUG
-static void __attribute__((destructor))
+static void TECO_DEBUG_CLEANUP
teco_help_cleanup(void)
{
if (!teco_help_chunk)
@@ -251,7 +250,6 @@ teco_help_cleanup(void)
teco_help_topic_free((teco_help_topic_t *)cur);
}
}
-#endif
/*
* Command states