[Freeciv-Dev] (PR#14076) client crash w/ local options
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
<URL: http://bugs.freeciv.org/Ticket/Display.html?id=14076 >
> [chrisk - Wed Sep 21 11:45:46 2005]:
>
>
> 2.0.99 CVS 21 SEPT 2005 GTK2
>
> a freshly started client (either with new game or loaded game) crashes, if
> you go menue -> file -> local options
Good report. This was just an oversight. Unfortunately it's possible
there are more like it.
I will commit this fix immediately.
-jason
Index: client/tilespec.c
===================================================================
RCS file: /home/freeciv/CVS/freeciv/client/tilespec.c,v
retrieving revision 1.323
diff -p -u -r1.323 tilespec.c
--- client/tilespec.c 21 Sep 2005 03:10:20 -0000 1.323
+++ client/tilespec.c 22 Sep 2005 04:34:05 -0000
@@ -758,7 +758,9 @@ static void tileset_free_toplevel(struct
}
if (draw->is_blended && t->is_isometric) {
for (i = 0; i < 4; i++) {
- free_sprite(draw->blend[i]);
+ if (draw->blend[i]) {
+ free_sprite(draw->blend[i]);
+ }
}
}
free((void *) draw);
|
|