libpurple/purpleprotocolmanager.c

changeset 42592
6b65c0e4ba15
parent 42576
ab1ca778ddb2
child 42594
eddde70cedd8
--- a/libpurple/purpleprotocolmanager.c	Tue Feb 20 00:40:30 2024 -0600
+++ b/libpurple/purpleprotocolmanager.c	Tue Feb 20 00:55:28 2024 -0600
@@ -260,7 +260,7 @@
 	 * will need to pass it to the signal emission after it's removed from the
 	 * hash table that'll unref it.
 	 */
-	g_object_ref(G_OBJECT(protocol));
+	g_object_ref(protocol);
 
 	id = purple_protocol_get_id(protocol);
 
@@ -292,7 +292,7 @@
 		ret = FALSE;
 	}
 
-	g_object_unref(G_OBJECT(protocol));
+	g_object_unref(protocol);
 
 	return ret;
 }

mercurial