From 495a74d0e6bde1642796cbd091747579ad73cb2b Mon Sep 17 00:00:00 2001
From: Julian Bouzas <julian.bouzas@collabora.com>
Date: Wed, 26 Jun 2019 12:36:59 -0400
Subject: [PATCH] endpoint: remove unneeded ref/unref

---
 lib/wp/endpoint.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/lib/wp/endpoint.c b/lib/wp/endpoint.c
index 12853e0b..2ce211a4 100644
--- a/lib/wp/endpoint.c
+++ b/lib/wp/endpoint.c
@@ -345,9 +345,7 @@ wp_endpoint_unregister (WpEndpoint * self)
     g_info ("WpEndpoint:%p unregistering '%s' (%s)", self, priv->name,
         priv->media_class);
 
-    g_object_ref (self);
     wp_core_remove_global (core, WP_GLOBAL_ENDPOINT, self);
-    g_object_unref (self);
   }
 }
 
-- 
GitLab