|
From: Kentaro F. <fu...@me...> - 2007-11-18 11:26:05
|
Hello,
An lo_bundle object can contains multiple lo_messages, but there is no way to
free those messages if you have no pointers to them after calling
lo_bundle_add_message(). Why lo_bundle_free() does not free messages in it,
just like the following?
void lo_bundle_free_messages_too(lo_bundle b)
{
int i;
if (!b) {
return;
}
for(i = 0; i < b->len; i++) {
lo_message_free(b->msgs[i]);
}
free(b->msgs);
free(b->paths);
free(b);
}
I think this function is useful. What do you think?
Kentaro Fukuchi
|