projects
/
apps
/
madmutt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
drop mem_alloc and mem_free, use my own hand crafted optmized macros that
[apps/madmutt.git]
/
history.c
diff --git
a/history.c
b/history.c
index
66559c0
..
2976633
100644
(file)
--- a/
history.c
+++ b/
history.c
@@
-11,6
+11,8
@@
# include "config.h"
#endif
# include "config.h"
#endif
+#include <lib-lib/mem.h>
+
#include "mutt.h"
#include "history.h"
#include "lib/mem.h"
#include "mutt.h"
#include "history.h"
#include "lib/mem.h"
@@
-33,8
+35,8
@@
static void init_history (struct history *h)
if (OldSize) {
if (h->hist) {
for (i = 0; i < OldSize; i++)
if (OldSize) {
if (h->hist) {
for (i = 0; i < OldSize; i++)
-
mem_free
(&h->hist[i]);
-
mem_free
(&h->hist);
+
p_delete
(&h->hist[i]);
+
p_delete
(&h->hist);
}
}
}
}