Skip to content
Snippets Groups Projects
Commit ab1a126c authored by Micah Elizabeth Scott's avatar Micah Elizabeth Scott
Browse files

libusbev: Fix memory leak

parent 027184cd
No related branches found
No related tags found
No related merge requests found
......@@ -57,6 +57,7 @@ void LibUSBEventBridge::cbRemoved(int fd, void *user_data)
Watcher *w = self->mWatchers[fd];
ev_io_stop(self->mLoop, &w->io);
delete w;
self->mWatchers.erase(fd);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment