* Add support for other operating systems (kFreeBSD, FreeBSD, and OSX for now).

* Switch to autoconf from genconfig.sh.
This commit is contained in:
Justin Maggard
2011-09-16 23:39:58 +00:00
parent 715af3519b
commit 773e1f6566
40 changed files with 1952 additions and 533 deletions

View File

@ -340,10 +340,7 @@ static void upnp_event_prepare(struct upnp_event_notify * obj)
obj->sub->uuid, obj->sub->seq,
l, xml);
obj->buffersize = obj->tosend;
if(xml) {
free(xml);
xml = NULL;
}
free(xml);
DPRINTF(E_DEBUG, L_HTTP, "Sending UPnP Event response:\n%s\n", obj->buffer);
obj->state = ESending;
}
@ -468,9 +465,7 @@ void upnpevents_processfds(fd_set *readset, fd_set *writeset)
free(obj->sub);
}
#endif
if(obj->buffer) {
free(obj->buffer);
}
free(obj->buffer);
LIST_REMOVE(obj, entries);
free(obj);
}