libpurple/blistnodetypes.c

branch
soc.2013.gobjectification
changeset 34716
fc09ccb6eab5
parent 34714
9d1d1e5d19b4
child 34718
aa2019a5ccec
equal deleted inserted replaced
34715:6cc8de5eda26 34716:fc09ccb6eab5
501 501
502 g_free(priv->name); 502 g_free(priv->name);
503 g_free(priv->local_alias); 503 g_free(priv->local_alias);
504 g_free(priv->server_alias); 504 g_free(priv->server_alias);
505 505
506 /* TODO: Now that PurpleBuddy is a GObject, timeout callbacks can
507 * g_object_ref() it when connecting the callback and
508 * g_object_unref() it in the handler. That way, it won't
509 * get freed while the timeout is pending and this line can
510 * be removed. */
511 while (g_source_remove_by_user_data((gpointer *)object));
512
513 G_OBJECT_CLASS(parent_class)->finalize(object); 506 G_OBJECT_CLASS(parent_class)->finalize(object);
514 } 507 }
515 508
516 /* Class initializer function */ 509 /* Class initializer function */
517 static void purple_buddy_class_init(PurpleBuddyClass *klass) 510 static void purple_buddy_class_init(PurpleBuddyClass *klass)

mercurial