Fix a memory leak
This commit is contained in:
parent
f8afde7528
commit
0e0acc9a10
1 changed files with 1 additions and 0 deletions
|
@ -503,6 +503,7 @@ void FGLinuxEventInput::postinit()
|
|||
udev_device_unref(dev);
|
||||
}
|
||||
|
||||
udev_enumerate_unref(enumerate); // REVIEW: this should fix the memory leak
|
||||
udev_unref(udev);
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue