libpurple/purpleprotocolmanager.c

changeset 42592
6b65c0e4ba15
parent 42576
ab1ca778ddb2
child 42594
eddde70cedd8
equal deleted inserted replaced
42591:aa3f777462d8 42592:6b65c0e4ba15
258 /* We need to hold a reference on the protocol as typically we will be 258 /* We need to hold a reference on the protocol as typically we will be
259 * holding the only reference on the protocol when this is called and we 259 * holding the only reference on the protocol when this is called and we
260 * will need to pass it to the signal emission after it's removed from the 260 * will need to pass it to the signal emission after it's removed from the
261 * hash table that'll unref it. 261 * hash table that'll unref it.
262 */ 262 */
263 g_object_ref(G_OBJECT(protocol)); 263 g_object_ref(protocol);
264 264
265 id = purple_protocol_get_id(protocol); 265 id = purple_protocol_get_id(protocol);
266 266
267 if(g_hash_table_remove(manager->protocols, id)) { 267 if(g_hash_table_remove(manager->protocols, id)) {
268 guint position; 268 guint position;
290 _("protocol %s is not registered"), id); 290 _("protocol %s is not registered"), id);
291 291
292 ret = FALSE; 292 ret = FALSE;
293 } 293 }
294 294
295 g_object_unref(G_OBJECT(protocol)); 295 g_object_unref(protocol);
296 296
297 return ret; 297 return ret;
298 } 298 }
299 299
300 PurpleProtocol * 300 PurpleProtocol *

mercurial