From: David Woodhouse Date: Wed, 7 Mar 2018 14:15:35 +0000 (+0000) Subject: Fix unimplemented free_participant() X-Git-Tag: v0.9~62 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=a647328d5783f528d2456977888b32ddd59b619f;p=pidgin-chime.git Fix unimplemented free_participant() Probably didn't need valgrind to see *that* one was a leak... --- diff --git a/chime-call.c b/chime-call.c index c86dd8b..f01afbc 100644 --- a/chime-call.c +++ b/chime-call.c @@ -288,8 +288,15 @@ static gboolean parse_call_participation_status(JsonNode *node, const gchar *mem return TRUE; } -static void free_participant(void *p) +static void free_participant(void *_p) { + ChimeCallParticipant *p = _p; + + free(p->participant_id); + free(p->participant_type); + free(p->full_name); + free(p->email); + free(p); } static gboolean parse_participant(ChimeConnection *cxn, ChimeCall *call, JsonNode *p)