libpurple/accounts.c

changeset 35597
7fcfcf147b99
parent 35572
5c4846317f2f
child 37119
fdd7282fdad6
equal deleted inserted replaced
35596:5b4df5b31fb2 35597:7fcfcf147b99
832 *ops_new = *ops; 832 *ops_new = *ops;
833 833
834 return ops_new; 834 return ops_new;
835 } 835 }
836 836
837 static void
838 purple_account_ui_ops_free(PurpleAccountUiOps *ops)
839 {
840 g_return_if_fail(ops != NULL);
841
842 g_free(ops);
843 }
844
845 GType 837 GType
846 purple_account_ui_ops_get_type(void) 838 purple_account_ui_ops_get_type(void)
847 { 839 {
848 static GType type = 0; 840 static GType type = 0;
849 841
850 if (type == 0) { 842 if (type == 0) {
851 type = g_boxed_type_register_static("PurpleAccountUiOps", 843 type = g_boxed_type_register_static("PurpleAccountUiOps",
852 (GBoxedCopyFunc)purple_account_ui_ops_copy, 844 (GBoxedCopyFunc)purple_account_ui_ops_copy,
853 (GBoxedFreeFunc)purple_account_ui_ops_free); 845 (GBoxedFreeFunc)g_free);
854 } 846 }
855 847
856 return type; 848 return type;
857 } 849 }
858 850

mercurial