chiark
/
gitweb
/
~ian
/
sgt-puzzles.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
236f965
)
Fix bug in error reporting for --save caused by freeing 'realname'
author
Simon Tatham
<anakin@pobox.com>
Wed, 28 Dec 2011 18:07:46 +0000
(18:07 +0000)
committer
Simon Tatham
<anakin@pobox.com>
Wed, 28 Dec 2011 18:07:46 +0000
(18:07 +0000)
before the error messages wanted to use it.
[originally from svn r9374]
gtk.c
patch
|
blob
|
history
diff --git
a/gtk.c
b/gtk.c
index e6a03665c4fbf8b419269a149e4e33f679dd57d1..d45a76d29bd19107dddd261cf19b165d8872a586 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);