[gnome-online-miners] media-server: Don't take a reference in dlna_servers_manager_get_server
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-online-miners] media-server: Don't take a reference in dlna_servers_manager_get_server
- Date: Thu, 28 Aug 2014 00:45:27 +0000 (UTC)
commit 0e03843060a89982516cef5965a47dcb42537621
Author: Debarshi Ray <debarshir gnome org>
Date: Thu Aug 28 00:35:56 2014 +0200
media-server: Don't take a reference in dlna_servers_manager_get_server
https://bugzilla.gnome.org/show_bug.cgi?id=728912
src/gom-dlna-servers-manager.c | 7 +------
1 files changed, 1 insertions(+), 6 deletions(-)
---
diff --git a/src/gom-dlna-servers-manager.c b/src/gom-dlna-servers-manager.c
index 85fdec1..5ab6015 100644
--- a/src/gom-dlna-servers-manager.c
+++ b/src/gom-dlna-servers-manager.c
@@ -276,12 +276,7 @@ GomDlnaServer *
gom_dlna_servers_manager_get_server (GomDlnaServersManager *self,
const gchar *udn)
{
- GomDlnaServersManagerPrivate *priv = self->priv;
- GomDlnaServer *server;
-
- server = GOM_DLNA_SERVER (g_hash_table_lookup (priv->udn_to_server, udn));
-
- return server != NULL ? g_object_ref (server) : NULL;
+ return g_hash_table_lookup (self->priv->udn_to_server, udn);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]