fixing minor memory leak of friendlist

This commit is contained in:
Chris Hall 2013-08-14 17:35:15 +12:00
parent 0590d8325c
commit cf5ad56a4a

View File

@ -572,7 +572,10 @@ Messenger * initMessenger(void)
/* run this before closing shop */
void cleanupMessenger(Messenger *m){
/* FIXME TODO it seems no one frees friendlist or all the elements status */
/* FIXME TODO ideally cleanupMessenger will mirror initMessenger
* this requires the other modules to expose cleanup functions
*/
free(m->friendlist);
free(m);
}