summary refs log tree commit diff
path: root/Src/Zle
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2009-05-11 09:03:25 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2009-05-11 09:03:25 +0000
commitc18b6c2c99b14301ac005e27a9472feed9a46eec (patch)
tree08bdc0ce4179b70611b524042fb66a6a177d0e6f /Src/Zle
parentcfd3eab3d6b4bb31c258618909f302cc672b751e (diff)
downloadzsh-c18b6c2c99b14301ac005e27a9472feed9a46eec.tar.gz
zsh-c18b6c2c99b14301ac005e27a9472feed9a46eec.tar.xz
zsh-c18b6c2c99b14301ac005e27a9472feed9a46eec.zip
26956: tidy up some zle variables for module unloading
note issue found on HP-UX
Diffstat (limited to 'Src/Zle')
-rw-r--r--Src/Zle/zle_refresh.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/Src/Zle/zle_refresh.c b/Src/Zle/zle_refresh.c
index cfcfed3da..c61abb48f 100644
--- a/Src/Zle/zle_refresh.c
+++ b/Src/Zle/zle_refresh.c
@@ -2644,6 +2644,10 @@ zle_refresh_finish(void)
     freevideo();
 
     if (region_highlights)
+    {
 	zfree(region_highlights,
 	      sizeof(struct region_highlight) * n_region_highlights);
+	region_highlights = NULL;
+	n_region_highlights = 0;
+    }
 }