aboutsummaryrefslogtreecommitdiffstats
path: root/colorize.c
diff options
context:
space:
mode:
Diffstat (limited to 'colorize.c')
-rw-r--r--colorize.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/colorize.c b/colorize.c
index b1d9ecc..38b2350 100644
--- a/colorize.c
+++ b/colorize.c
@@ -1927,7 +1927,8 @@ release (struct var_list *list, unsigned int stacked, void **ptr)
for (i = 0; i < stacked; i++)
{
struct var_list *var = &list[i];
- if (var->ptr == *ptr)
+ if (var->type != IS_UNUSED
+ && var->ptr == *ptr)
{
switch (var->type)
{