Author: cazfi Date: Sat Mar 5 13:00:17 2016 New Revision: 32183 URL: http://svn.gna.org/viewcvs/freeciv?rev=32183&view=rev Log: Set color option to NULL in addition to freeing it when it's being cleared.
See bug #24351 Modified: branches/S2_5/client/options.c Modified: branches/S2_5/client/options.c URL: http://svn.gna.org/viewcvs/freeciv/branches/S2_5/client/options.c?rev=32183&r1=32182&r2=32183&view=diff ============================================================================== --- branches/S2_5/client/options.c (original) +++ branches/S2_5/client/options.c Sat Mar 5 13:00:17 2016 @@ -1,4 +1,4 @@ -/********************************************************************** +/********************************************************************** Freeciv - Copyright (C) 1996 - A Kjeldberg, L Gregersen, P Unold This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -3153,6 +3153,7 @@ } else { \ if (NULL == color) { \ free((void *) color_tgt); \ + color_tgt = NULL; \ changed = TRUE; \ } else if (0 != strcmp(color_tgt, color)) { \ free((void *) color_tgt); \ _______________________________________________ Freeciv-commits mailing list Freeciv-commits@gna.org https://mail.gna.org/listinfo/freeciv-commits