[gcompris/gcomprixogoo] Added missing null initialization of property->server.



commit 41efa3e698749aaded64c09d80a83fa8af95b7e2
Author: Bruno Coudoin <bruno coudoin free fr>
Date:   Tue Nov 17 23:31:14 2009 +0100

    Added missing null initialization of property->server.
    This was creating a potential crash at GCompris startup.

 src/gcompris/properties.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/gcompris/properties.c b/src/gcompris/properties.c
index 6d74599..6b0fe3a 100644
--- a/src/gcompris/properties.c
+++ b/src/gcompris/properties.c
@@ -173,6 +173,7 @@ gc_prop_new ()
   tmp->menu_dir			  = NULL;
   tmp->system_icon_dir            = NULL;
   tmp->cache_dir                  = NULL;
+  tmp->server	                  = NULL;
   tmp->drag_mode                  = GC_DRAG_MODE_GRAB;
 
   tmp->config_dir = gc_prop_default_config_directory_get();
@@ -527,6 +528,7 @@ gc_prop_destroy (GcomprisProperties *props)
   g_free(props->database);
   g_free(props->config_dir);
   g_free(props->user_dir);
+  g_free(props->server);
   g_free(props->root_menu);
   g_free(props);
 }



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]