[network-manager-applet] editor: fix error in freeing GByteArray



commit 0ca9e3fabcb9243c107535e84c125de408df7d66
Author: JiÅÃ KlimeÅ <jklimes redhat com>
Date:   Fri Jan 11 11:17:25 2013 +0100

    editor: fix error in freeing GByteArray

 src/connection-editor/page-wifi.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/connection-editor/page-wifi.c b/src/connection-editor/page-wifi.c
index 3ca3caa..69550ab 100644
--- a/src/connection-editor/page-wifi.c
+++ b/src/connection-editor/page-wifi.c
@@ -350,7 +350,8 @@ populate_ui (CEPageWifi *self)
 	gtk_entry_set_text (priv->ssid, utf8_ssid);
 	g_signal_connect_swapped (priv->ssid, "changed", G_CALLBACK (ce_page_changed), self);
 	g_free (utf8_ssid);
-	g_byte_array_unref (ssid);
+	if (ssid)
+		g_byte_array_free (ssid, TRUE);
 
 	/* Default to Infrastructure */
 	gtk_combo_box_set_active (priv->mode, 0);



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