[network-manager-netbook/MplPanelClient: 38/44] Fix warnings in device handler
- From: Tambet Ingo <tambeti src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [network-manager-netbook/MplPanelClient: 38/44] Fix warnings in device handler
- Date: Tue, 10 Nov 2009 14:12:54 +0000 (UTC)
commit d9745fe35e5146bffb598a7bcd450c180af3ed75
Author: Bastien Nocera <hadess hadess net>
Date: Wed Sep 30 16:41:34 2009 +0100
Fix warnings in device handler
If we're going to unref device, we need to hold a reference to them.
Also make sure we disconnect device_state_changed_id from the correct
object.
src/nmn-device-handler.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/nmn-device-handler.c b/src/nmn-device-handler.c
index 96e361b..493aec8 100644
--- a/src/nmn-device-handler.c
+++ b/src/nmn-device-handler.c
@@ -163,7 +163,7 @@ nmn_device_handler_add_item (NmnDeviceHandler *self,
g_signal_connect (item, "remove-requested", G_CALLBACK (item_removed), self);
priv = GET_PRIVATE (self);
- priv->items = g_slist_prepend (priv->items, item);
+ priv->items = g_slist_prepend (priv->items, g_object_ref (item));
g_signal_emit (self, signals[ITEM_ADDED], 0, item);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]