diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/libcamera/device_enumerator.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libcamera/device_enumerator.cpp b/src/libcamera/device_enumerator.cpp index f1d016db..0d18e755 100644 --- a/src/libcamera/device_enumerator.cpp +++ b/src/libcamera/device_enumerator.cpp @@ -140,6 +140,8 @@ DeviceEnumerator *DeviceEnumerator::create() if (!enumerator->init()) return enumerator; + delete enumerator; + /* * Either udev is not available or udev initialization failed. Fall back * on the sysfs enumerator. |