projects
/
u
/
mdw
/
putty
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Thanks to D H Becker for sending in an icon. I'd have liked to have
[u/mdw/putty]
/
mac
/
macstore.c
diff --git
a/mac/macstore.c
b/mac/macstore.c
index
5b6afba
..
35f31bd
100644
(file)
--- a/
mac/macstore.c
+++ b/
mac/macstore.c
@@
-506,10
+506,10
@@
void *enum_settings_start(void) {
OSErr error;
struct enum_settings_state *state;
OSErr error;
struct enum_settings_state *state;
- state = s
afemalloc(sizeof(*state)
);
+ state = s
new(struct enum_settings_state
);
error = get_session_dir(kDontCreateFolder, &state->vRefNum, &state->dirID);
if (error != noErr) {
error = get_session_dir(kDontCreateFolder, &state->vRefNum, &state->dirID);
if (error != noErr) {
- s
afe
free(state);
+ sfree(state);
return NULL;
}
state->index = 1;
return NULL;
}
state->index = 1;