mirror of
git://git.tartarus.org/simon/puzzles.git
synced 2025-04-21 08:01:30 -07:00
Fix bug in error reporting for --save caused by freeing 'realname'
before the error messages wanted to use it. [originally from svn r9374]
This commit is contained in:
2
gtk.c
2
gtk.c
@ -2704,7 +2704,6 @@ int main(int argc, char **argv)
|
|||||||
strerror(errno));
|
strerror(errno));
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
sfree(realname);
|
|
||||||
ctx.error = 0;
|
ctx.error = 0;
|
||||||
midend_serialise(me, savefile_write, &ctx);
|
midend_serialise(me, savefile_write, &ctx);
|
||||||
if (ctx.error) {
|
if (ctx.error) {
|
||||||
@ -2717,6 +2716,7 @@ int main(int argc, char **argv)
|
|||||||
strerror(errno));
|
strerror(errno));
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
sfree(realname);
|
||||||
}
|
}
|
||||||
if (!doc && !savefile) {
|
if (!doc && !savefile) {
|
||||||
id = midend_get_game_id(me);
|
id = midend_get_game_id(me);
|
||||||
|
Reference in New Issue
Block a user