From: Ludovic R. <lud...@gm...> - 2013-09-07 10:02:19
|
2013/9/7 Hans de Goede <hde...@re...>: > Well, alternatively we could document that libusb-compat uses atexit for cleanup, > and that apps using it should either not access libusb from their own atexit handlers, > or register their atexit handler after calling libusb_init (atexit handlers are > called in reverse registration order). If we ask maintainers to modify the code of their application using libusb-0.1 we should just tell the to use libusb-1.0 directly. The goal of libusb-compat is to allow "unmaintained" applications using the libusb-0.1 API to benefit from libusb-1.0 with no code change. We should not break this "contract". So I think the best is to keep the resource leak and avoid crashes. Bye -- Dr. Ludovic Rousseau |