[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Restarting Curses
From: |
Thomas Dickey |
Subject: |
Re: Restarting Curses |
Date: |
Sat, 5 Sep 2009 19:13:32 -0400 (EDT) |
On Sat, 5 Sep 2009, Nicholas Cole wrote:
I've re-designed things to ensure that initscr() only gets called
once, but I have hit another issue -
repeated calls to endwin() seem to cause a memory leak (at least on my
system). Is this expected, and if so, what can I use instead to drop
out of curses?
(n)curses allocates some memory "permanently".
Beyond that, endwin shouldn't leak - it's "once" (unless there's
some additional re-initialization).
ncurses can be built with extra functions to free this memory (see the
INSTALL file discussion --disable-leaks).
--
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net