]> rtime.felk.cvut.cz Git - sojka/lightdm.git/commitdiff
Don't double free configuration key sources
authorRobert Ancell <robert.ancell@canonical.com>
Wed, 8 Oct 2014 19:48:56 +0000 (08:48 +1300)
committerRobert Ancell <robert.ancell@canonical.com>
Wed, 8 Oct 2014 19:48:56 +0000 (08:48 +1300)
common/configuration.c

index bf08c7d9cad83e3101511e65adad8a291a3f005d..1ef644902fb7bce35538246b0c3f0ca0ab8e9946 100644 (file)
@@ -311,7 +311,7 @@ config_init (Configuration *config)
 {
     config->priv = G_TYPE_INSTANCE_GET_PRIVATE (config, CONFIGURATION_TYPE, ConfigurationPrivate);
     config->priv->key_file = g_key_file_new ();
-    config->priv->key_sources = g_hash_table_new_full (g_str_hash, g_str_equal, g_free, g_free);
+    config->priv->key_sources = g_hash_table_new_full (g_str_hash, g_str_equal, g_free, NULL);
 }
 
 static void