[libdmapsharing] Fix crash upon finalizing DMAPShare
- From: W. Michael Petullo <wmpetullo src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libdmapsharing] Fix crash upon finalizing DMAPShare
- Date: Fri, 28 May 2010 05:44:08 +0000 (UTC)
commit 0184340c1ae1e08b862cea8be64ee8d23f5ec628
Author: W. Michael Petullo <mike flyn org>
Date: Thu May 27 05:30:39 2010 -0500
Fix crash upon finalizing DMAPShare
Fix crash upon finalizing DMAPShare that was caused by the misuse of
avahi_entry_group_free().
Signed-off-by: W. Michael Petullo <mike flyn org>
ChangeLog | 5 +++++
libdmapsharing/dmap-mdns-publisher-avahi.c | 3 +--
2 files changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 08c558a..6675bff 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+27 May 2010 W. Michael Petullo <mike flyn org>
+
+ * Fix crash upon finalizing DMAPShare that was caused by misuse of
+ avahi_entry_group_free().
+
25 May 2010 W. Michael Petullo <mike flyn org>
* Refactor build_filter into dmap_share_build_factor.
diff --git a/libdmapsharing/dmap-mdns-publisher-avahi.c b/libdmapsharing/dmap-mdns-publisher-avahi.c
index de51d07..f77e885 100644
--- a/libdmapsharing/dmap-mdns-publisher-avahi.c
+++ b/libdmapsharing/dmap-mdns-publisher-avahi.c
@@ -337,7 +337,6 @@ dmap_mdns_publisher_withdraw (DmapMdnsPublisher *publisher,
avahi_entry_group_reset (publisher->priv->entry_group);
avahi_entry_group_free (publisher->priv->entry_group);
publisher->priv->entry_group = NULL;
- dmap_mdns_avahi_set_entry_group (NULL);
return TRUE;
}
@@ -423,7 +422,7 @@ dmap_mdns_publisher_finalize (GObject *object)
if (publisher->priv->entry_group) {
avahi_entry_group_free (publisher->priv->entry_group);
- dmap_mdns_avahi_set_entry_group (NULL);
+ publisher->priv->entry_group = NULL;
}
g_free (publisher->priv->name);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]