[network-manager-applet/NMA_0_8] editor: fix destruction of string arrays after reading from GConf (rh #618620)



commit 3c5304ebebd17e4791d9c511501bc485035e0208
Author: Dan Williams <dcbw redhat com>
Date:   Sat Aug 7 23:34:15 2010 -0500

    editor: fix destruction of string arrays after reading from GConf (rh #618620)

 src/gconf-helpers/gconf-helpers.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/gconf-helpers/gconf-helpers.c b/src/gconf-helpers/gconf-helpers.c
index 69ebf45..a42dd43 100644
--- a/src/gconf-helpers/gconf-helpers.c
+++ b/src/gconf-helpers/gconf-helpers.c
@@ -1773,7 +1773,7 @@ read_one_setting_value_from_gconf (NMSetting *setting,
 
 		if (nm_gconf_get_stringarray_helper (info->client, info->dir, key, setting_name, &pa_val)) {
 			g_object_set (setting, key, pa_val, NULL);
-			g_ptr_array_foreach (pa_val, (GFunc) free_one_struct, NULL);
+			g_ptr_array_foreach (pa_val, (GFunc) g_free, NULL);
 			g_ptr_array_free (pa_val, TRUE);
 		}
 	} else if (type == DBUS_TYPE_G_UINT_ARRAY) {



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