gnome-games r8582 - trunk/blackjack/src
- From: chpe svn gnome org
- To: svn-commits-list gnome org
- Subject: gnome-games r8582 - trunk/blackjack/src
- Date: Sun, 18 Jan 2009 15:20:16 +0000 (UTC)
Author: chpe
Date: Sun Jan 18 15:20:16 2009
New Revision: 8582
URL: http://svn.gnome.org/viewvc/gnome-games?rev=8582&view=rev
Log:
g_free is NULL-safe.
Modified:
trunk/blackjack/src/blackjack.cpp
Modified: trunk/blackjack/src/blackjack.cpp
==============================================================================
--- trunk/blackjack/src/blackjack.cpp (original)
+++ trunk/blackjack/src/blackjack.cpp Sun Jan 18 15:20:16 2009
@@ -585,8 +585,7 @@
void
bj_set_game_variation (const gchar *value)
{
- if (game_variation)
- g_free (game_variation);
+ g_free (game_variation);
game_variation = g_strdup (value);
games_conf_set_string (KEY_SETTINGS_GROUP, KEY_GAME_VARIATION, game_variation);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]