pidgin/pidgin

11764e84328d
Parents 3acbe4afeab5
Children 016690872c6c
Use purple_roomlist_room_free to reduce duplication
--- a/libpurple/roomlist.c Sun Nov 03 20:23:01 2019 +0300
+++ b/libpurple/roomlist.c Sun Nov 03 20:33:05 2019 +0300
@@ -79,6 +79,7 @@
G_DEFINE_TYPE_WITH_PRIVATE(PurpleRoomlist, purple_roomlist, G_TYPE_OBJECT);
+static void purple_roomlist_room_free(PurpleRoomlistRoom *r);
static void purple_roomlist_field_free(PurpleRoomlistField *f);
static void purple_roomlist_room_destroy(PurpleRoomlist *list, PurpleRoomlistRoom *r);
@@ -601,9 +602,7 @@
g_free(j->data);
}
- g_list_free(r->fields);
- g_free(r->name);
- g_free(r);
+ purple_roomlist_room_free(r);
}
/**************************************************************************/