Correct an NX error that would leave stuff on the display when a window is closed

git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3769 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
patacongo
2011-07-11 13:30:47 +00:00
parent 395778f0f2
commit 2ff6c3793c
3 changed files with 12 additions and 6 deletions
+8 -1
View File
@@ -104,7 +104,7 @@ void nxbe_closewindow(struct nxbe_window_s *wnd)
if (wnd->above)
{
/* Yes, now the window below that on is the window below
/* Yes, now the window below that one is the window below
* the one being closed.
*/
@@ -126,5 +126,12 @@ void nxbe_closewindow(struct nxbe_window_s *wnd)
*/
wnd->below->above = wnd->above;
/* Redraw the windows that were below us (and may now be exposed) */
nxbe_redrawbelow(be, wnd->below, &wnd->bounds);
/* Then discard the window structure */
free(wnd);
}