--- a/libpurple/protocols/jabber/google/google_p2p.c Wed Nov 20 04:54:16 2013 +0530 +++ b/libpurple/protocols/jabber/google/google_p2p.c Sun Nov 24 02:44:39 2013 +0530 @@ -140,21 +140,19 @@ klass->parent_class.add_local_candidate = jingle_google_p2p_add_local_candidate; klass->parent_class.get_remote_candidates = jingle_google_p2p_get_remote_candidates; + g_type_class_add_private(klass, sizeof(JingleGoogleP2PPrivate)); + properties[PROP_LOCAL_CANDIDATES] = g_param_spec_pointer("local-candidates", "Local candidates", "The local candidates for this transport.", G_PARAM_READABLE | G_PARAM_STATIC_STRINGS); - g_object_class_install_property(gobject_class, PROP_LOCAL_CANDIDATES, - properties[PROP_LOCAL_CANDIDATES]); properties[PROP_REMOTE_CANDIDATES] = g_param_spec_pointer("remote-candidates", "Remote candidates", "The remote candidates for this transport.", G_PARAM_READABLE | G_PARAM_STATIC_STRINGS); - g_object_class_install_property(gobject_class, PROP_REMOTE_CANDIDATES, - properties[PROP_REMOTE_CANDIDATES]); - g_type_class_add_private(klass, sizeof(JingleGoogleP2PPrivate)); + g_object_class_install_properties(gobject_class, PROP_LAST, properties); } static void