[libdmapsharing] Free ServiceContext where it actually goes out of scope.
- From: W. Michael Petullo <wmpetullo src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libdmapsharing] Free ServiceContext where it actually goes out of scope.
- Date: Fri, 8 Jul 2011 15:48:43 +0000 (UTC)
commit 3943d8d059d46a6f016b9d397117c1da7a6eb4cb
Author: Daniel Svensson <dsvensson gmail com>
Date: Fri Jul 8 08:31:47 2011 +0200
Free ServiceContext where it actually goes out of scope.
libdmapsharing/dmap-mdns-browser-dnssd.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/libdmapsharing/dmap-mdns-browser-dnssd.c b/libdmapsharing/dmap-mdns-browser-dnssd.c
index d0545d9..7272746 100644
--- a/libdmapsharing/dmap-mdns-browser-dnssd.c
+++ b/libdmapsharing/dmap-mdns-browser-dnssd.c
@@ -135,8 +135,6 @@ dmap_mdns_browser_resolve (ServiceContext *context)
g_signal_emit (context->browser,
dmap_mdns_browser_signals[SERVICE_ADDED], 0, service);
- service_context_free (context);
-
return TRUE;
}
@@ -161,6 +159,8 @@ service_result_available_cb (GIOChannel * gio, GIOCondition condition,
dmap_mdns_browser_resolve (context);
+ service_context_free (context);
+
return FALSE;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]