Add error handling.

This commit is contained in:
Yoichi NAKAYAMA 2012-03-04 13:38:13 +09:00 committed by Fabrice Fontaine
parent da244683cf
commit 47c86542bc
2 changed files with 14 additions and 1 deletions

View File

@ -2,6 +2,15 @@
Version 1.6.16
*******************************************************************************
2012-03-05 Fabrice Fontaine <fabrice.fontaine(at)orange.com>
Submitted: Yoichi NAKAYAMA ( yoichi ) - 2012-03-03 20:35:08 PST
SF Bug Tracker id 3496702 - TvDeviceStop is called even if Start failed
In sample tvdevice, error of device_main() is not handled, and
TvDeviceStop() cause crash.
2012-03-05 Fabrice Fontaine <fabrice.fontaine(at)orange.com>
SF Bug Tracker id 3496942 - Memory leak in config_description_doc

View File

@ -46,7 +46,11 @@ int main(int argc, char *argv[])
#endif
int code;
device_main(argc, argv);
rc = device_main(argc, argv);
if (rc != UPNP_E_SUCCESS) {
return rc;
}
/* start a command loop thread */
code = ithread_create(&cmdloop_thread, NULL, TvDeviceCommandLoop, NULL);
#ifdef WIN32