Mercurial > hg > nnchat
comparison nnchat.c @ 75:abbdd101b267
Free some memory.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Sun, 16 Nov 2008 05:00:51 +0200 |
parents | 98004129202a |
children | e8c9d7d13866 |
comparison
equal
deleted
inserted
replaced
74:98004129202a | 75:abbdd101b267 |
---|---|
984 } | 984 } |
985 } | 985 } |
986 | 986 |
987 /* Shutdown */ | 987 /* Shutdown */ |
988 err_exit: | 988 err_exit: |
989 freeBuf(editBuf); | |
990 for (histPos = 0; histPos <= SET_MAX_HISTORY; histPos++) | |
991 freeBuf(histBuf[histPos]); | |
992 | |
989 if (cursesInit) { | 993 if (cursesInit) { |
990 if (curVis != ERR) | 994 if (curVis != ERR) |
991 curs_set(curVis); | 995 curs_set(curVis); |
992 endwin(); | 996 endwin(); |
993 THMSG(1, "NCurses deinitialized.\n"); | 997 THMSG(1, "NCurses deinitialized.\n"); |
1011 if (optLogFile) { | 1015 if (optLogFile) { |
1012 THMSG(1, "Closing logfile.\n"); | 1016 THMSG(1, "Closing logfile.\n"); |
1013 fclose(optLogFile); | 1017 fclose(optLogFile); |
1014 } | 1018 } |
1015 | 1019 |
1020 | |
1016 return 0; | 1021 return 0; |
1017 } | 1022 } |