~mdw
/
sgt
/
puzzles
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
2337bd6
)
Fix bug in error reporting for --save caused by freeing 'realname'
author
simon
<simon@cda61777-01e9-0310-a592-d414129be87e>
Wed, 28 Dec 2011 18:07:46 +0000
(18:07 +0000)
committer
simon
<simon@cda61777-01e9-0310-a592-d414129be87e>
Wed, 28 Dec 2011 18:07:46 +0000
(18:07 +0000)
before the error messages wanted to use it.
git-svn-id: svn://svn.tartarus.org/sgt/puzzles@9374
cda61777
-01e9-0310-a592-
d414129be87e
gtk.c
patch
|
blob
|
blame
|
history
diff --git
a/gtk.c
b/gtk.c
index
e6a0366
..
d45a76d
100644
(file)
--- a/
gtk.c
+++ b/
gtk.c
@@
-2704,7
+2704,6
@@
int main(int argc, char **argv)
strerror(errno));
return 1;
}
- sfree(realname);
ctx.error = 0;
midend_serialise(me, savefile_write, &ctx);
if (ctx.error) {
@@
-2717,6
+2716,7
@@
int main(int argc, char **argv)
strerror(errno));
return 1;
}
+ sfree(realname);
}
if (!doc && !savefile) {
id = midend_get_game_id(me);