network-manager-applet r1015 - trunk/src/connection-editor
- From: dcbw svn gnome org
- To: svn-commits-list gnome org
- Subject: network-manager-applet r1015 - trunk/src/connection-editor
- Date: Tue, 11 Nov 2008 12:40:49 +0000 (UTC)
Author: dcbw
Date: Tue Nov 11 12:40:49 2008
New Revision: 1015
URL: http://svn.gnome.org/viewvc/network-manager-applet?rev=1015&view=rev
Log:
Fix memory errors
Modified:
trunk/src/connection-editor/page-ip4.c
trunk/src/connection-editor/page-wireless.c
Modified: trunk/src/connection-editor/page-ip4.c
==============================================================================
--- trunk/src/connection-editor/page-ip4.c (original)
+++ trunk/src/connection-editor/page-ip4.c Tue Nov 11 12:40:49 2008
@@ -63,7 +63,7 @@
GtkButton *addr_add;
GtkButton *addr_delete;
GtkTreeView *addr_list;
- GtkCellRenderer *addr_cells[COL_LAST];
+ GtkCellRenderer *addr_cells[COL_LAST + 1];
/* DNS servers */
GtkWidget *dns_servers_label;
Modified: trunk/src/connection-editor/page-wireless.c
==============================================================================
--- trunk/src/connection-editor/page-wireless.c (original)
+++ trunk/src/connection-editor/page-wireless.c Tue Nov 11 12:40:49 2008
@@ -438,7 +438,7 @@
{
CEPageWireless *self = CE_PAGE_WIRELESS (page);
CEPageWirelessPrivate *priv = CE_PAGE_WIRELESS_GET_PRIVATE (self);
- const char *security;
+ char *security;
gboolean success;
gboolean invalid = FALSE;
GByteArray *ignore;
@@ -454,11 +454,12 @@
ui_to_setting (self);
/* A hack to not check the wireless security here */
- security = nm_setting_wireless_get_security (priv->setting);
+ security = g_strdup (nm_setting_wireless_get_security (priv->setting));
g_object_set (priv->setting, NM_SETTING_WIRELESS_SEC, NULL, NULL);
success = nm_setting_verify (NM_SETTING (priv->setting), NULL, error);
g_object_set (priv->setting, NM_SETTING_WIRELESS_SEC, security, NULL);
+ g_free (security);
return success;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]