Patch: avoid crashes in network manager support for gnome
- From: Jose Dapena Paz <jdapena igalia com>
- To: tinymail-devel-list <tinymail-devel-list gnome org>
- Subject: Patch: avoid crashes in network manager support for gnome
- Date: Wed, 12 Mar 2008 08:50:05 +0100
Hi,
This patch avoids some crashes with invalid contexts obtained sometimes
using gnome client. It simply nullifies the reference to the nm context
when it's shut down before finalizing the device.
Changelog entry:
* libtinymail-gnome-desktop/tny-gnome-device.c:
(tny_gnome_device_is_online) if we try to get the network
state and find that the network manager context is invalid,
we shutdown it AND after this we nullify the context
reference.
--
Jose Dapena Paz <jdapena igalia com>
Igalia
Index: libtinymail-gnome-desktop/tny-gnome-device.c
===================================================================
--- libtinymail-gnome-desktop/tny-gnome-device.c (revisión: 3486)
+++ libtinymail-gnome-desktop/tny-gnome-device.c (copia de trabajo)
@@ -182,6 +182,7 @@
libnm_glib_unregister_callback (priv->nm_ctx, priv->callback_id);
libnm_glib_shutdown (priv->nm_ctx);
+ priv->nm_ctx = NULL;
case LIBNM_NO_NETWORK_CONNECTION:
default:
Index: ChangeLog
===================================================================
--- ChangeLog (revisión: 3486)
+++ ChangeLog (copia de trabajo)
@@ -1,3 +1,11 @@
+2008-03-12 Jose Dapena Paz <jdapena igalia com>
+
+ * libtinymail-gnome-desktop/tny-gnome-device.c:
+ (tny_gnome_device_is_online) if we try to get the network
+ state and find that the network manager context is invalid,
+ we shutdown it AND after this we nullify the context
+ reference.
+
2008-03-11 Jose Dapena Paz <jdapena igalia com>
* libtinymail-camel/tny-camel-folder.c:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]