* Miscellaneous minor cleanups for string termination and unfreed memory at exit.

This commit is contained in:
Justin Maggard
2012-02-13 22:48:48 +00:00
parent 0687d8f6d8
commit 6fcd16985e
3 changed files with 32 additions and 40 deletions

View File

@ -194,6 +194,16 @@ upnpevents_removeSubscriber(const char * sid, int sidlen)
return -1;
}
void
upnpevents_removeSubscribers(void)
{
struct subscriber * sub;
for(sub = subscriberlist.lh_first; sub != NULL; sub = subscriberlist.lh_first) {
upnpevents_removeSubscriber(sub->uuid, sizeof(sub->uuid));
}
}
/* notifies all subscribers of a SystemUpdateID change */
void
upnp_event_var_change_notify(enum subscriber_service_enum service)