Fixed memory leak in dialog_gauge(3).
PR: gnu/32260 Submitted by: Igor Pokrovsky <tiamat@telegraph.spb.ru> MFC after: 3 days
This commit is contained in:
@@ -17,6 +17,9 @@
|
|||||||
* its use.
|
* its use.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include <sys/cdefs.h>
|
||||||
|
__FBSDID("$FreeBSD$");
|
||||||
|
|
||||||
#include "dialog.h"
|
#include "dialog.h"
|
||||||
|
|
||||||
void
|
void
|
||||||
@@ -66,6 +69,7 @@ dialog_gauge(char *title, char *prompt, int y, int x,
|
|||||||
for (i=0; i<glen; i++) waddch(gw, ' ');
|
for (i=0; i<glen; i++) waddch(gw, ' ');
|
||||||
|
|
||||||
wrefresh(gw);
|
wrefresh(gw);
|
||||||
|
delwin(gw);
|
||||||
|
|
||||||
return;
|
return;
|
||||||
} /* dialog_gauge() */
|
} /* dialog_gauge() */
|
||||||
|
|||||||
Reference in New Issue
Block a user