Commit b5335bf2 authored by Thomas Bechtold's avatar Thomas Bechtold Committed by Bastien Nocera
parent f0b3d1af
...@@ -1202,6 +1202,7 @@ notify_connections_read_cb (NMRemoteSettings *settings, ...@@ -1202,6 +1202,7 @@ notify_connections_read_cb (NMRemoteSettings *settings,
connection = NM_CONNECTION (iter->data); connection = NM_CONNECTION (iter->data);
add_connection (panel, connection); add_connection (panel, connection);
} }
g_slist_free (list);
} }
static gboolean static gboolean
......
...@@ -420,6 +420,8 @@ populate_ui (NetDeviceEthernet *device) ...@@ -420,6 +420,8 @@ populate_ui (NetDeviceEthernet *device)
gtk_widget_hide (device->details); gtk_widget_hide (device->details);
gtk_widget_hide (device->details_button); gtk_widget_hide (device->details_button);
} }
g_slist_free (connections);
} }
static void static void
......
...@@ -1790,6 +1790,7 @@ open_history (NetDeviceWifi *device_wifi) ...@@ -1790,6 +1790,7 @@ open_history (NetDeviceWifi *device_wifi)
} }
} }
g_slist_free (connections); g_slist_free (connections);
g_ptr_array_free (aps_unique, TRUE);
gtk_window_present (GTK_WINDOW (dialog)); gtk_window_present (GTK_WINDOW (dialog));
} }
...@@ -1866,6 +1867,7 @@ populate_ap_list (NetDeviceWifi *device_wifi) ...@@ -1866,6 +1867,7 @@ populate_ap_list (NetDeviceWifi *device_wifi)
} }
g_slist_free (connections); g_slist_free (connections);
g_ptr_array_free (aps_unique, TRUE);
} }
static void static void
......
...@@ -87,6 +87,7 @@ void ...@@ -87,6 +87,7 @@ void
net_object_set_id (NetObject *object, const gchar *id) net_object_set_id (NetObject *object, const gchar *id)
{ {
g_return_if_fail (NET_IS_OBJECT (object)); g_return_if_fail (NET_IS_OBJECT (object));
g_clear_pointer (&object->priv->id, g_free);
object->priv->id = g_strdup (id); object->priv->id = g_strdup (id);
g_object_notify (G_OBJECT (object), "id"); g_object_notify (G_OBJECT (object), "id");
} }
...@@ -109,6 +110,7 @@ void ...@@ -109,6 +110,7 @@ void
net_object_set_title (NetObject *object, const gchar *title) net_object_set_title (NetObject *object, const gchar *title)
{ {
g_return_if_fail (NET_IS_OBJECT (object)); g_return_if_fail (NET_IS_OBJECT (object));
g_clear_pointer (&object->priv->title, g_free);
object->priv->title = g_strdup (title); object->priv->title = g_strdup (title);
g_object_notify (G_OBJECT (object), "title"); g_object_notify (G_OBJECT (object), "title");
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment