summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWerner Almesberger <werner@almesberger.net>2016-08-18 18:14:14 -0300
committerWerner Almesberger <werner@almesberger.net>2016-08-18 18:14:14 -0300
commitae581b30b64dbf90a8529e748c8cdbeb7383791b (patch)
tree72e062397103b17f6a4af30fbf6cafd060fa1b39
parent647e784b27a977828ff50c4826f7e3a8e5c6b972 (diff)
downloadeeshow-ae581b30b64dbf90a8529e748c8cdbeb7383791b.tar.gz
eeshow-ae581b30b64dbf90a8529e748c8cdbeb7383791b.tar.bz2
eeshow-ae581b30b64dbf90a8529e748c8cdbeb7383791b.zip
eeshow/gui/over.c (overlay_remove_all): make re-entrant safe
-rw-r--r--gui/over.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gui/over.c b/gui/over.c
index bdd33fc..253ba7c 100644
--- a/gui/over.c
+++ b/gui/over.c
@@ -386,7 +386,7 @@ void overlay_remove_all(struct overlay **overlays)
while (*overlays) {
next = (*overlays)->next;
- overlay_free(*overlays);
+ overlay_remove(overlays, *overlays);
*overlays = next;
}
}