Properly destroy GSource in ~USBGSource()
This commit is contained in:
parent
5347cfd6b8
commit
3ed8af3b8b
1 changed files with 3 additions and 0 deletions
|
@ -67,6 +67,9 @@ USBGSource::~USBGSource()
|
|||
{
|
||||
// get rid of the callbacks as they will be triggered by libusb_exit()
|
||||
libusb_set_pollfd_notifiers(NULL, NULL, NULL, NULL);
|
||||
|
||||
// get rid of the GSource created in the constructor
|
||||
g_source_unref(reinterpret_cast<GSource*>(m_source));
|
||||
}
|
||||
|
||||
void
|
||||
|
|
Loading…
Add table
Reference in a new issue