diff --git a/stimBuffApis/livoxGen1/livoxGen1.cpp b/stimBuffApis/livoxGen1/livoxGen1.cpp index a98433e..fc36166 100644 --- a/stimBuffApis/livoxGen1/livoxGen1.cpp +++ b/stimBuffApis/livoxGen1/livoxGen1.cpp @@ -497,11 +497,7 @@ extern "C" int livoxGen1_finalizeInd(void) (*livoxProto1.livoxProto1_exit)(); } - if (livoxProto1.dlopenHandle) - { - dlclose(livoxProto1.dlopenHandle.get()); - livoxProto1.dlopenHandle.reset(); - } + livoxProto1.dlopenHandle.reset(nullptr); livoxProto1 = LivoxProto1DllState(); return 0; // Success