mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
fixing minor memory leak of friendlist
This commit is contained in:
parent
0590d8325c
commit
cf5ad56a4a
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user