Commit 474ba333 authored by jan.koester's avatar jan.koester
Browse files

bugfix urgent

parent 9eb31d52
Loading
Loading
Loading
Loading

repos.lnk

0 → 100644
+1.08 KiB

File added.

No diff preview for this file type.

+5 −2
Original line number Diff line number Diff line
@@ -196,6 +196,8 @@ confplus::Config::Config(const std::string &path) {
}

confplus::Config::~Config() {
    firstData.reset();

    destroy_t *destroy_plugin = (destroy_t*)GetProcAddress((HMODULE)_BackendData, "destroy");

    if (destroy_plugin != nullptr) {
@@ -249,6 +251,7 @@ confplus::Config::Config(const std::string &path){
}

confplus::Config::~Config(){
    firstData.reset();
    dlerror();
    destroy_t* destroy_plugin = (destroy_t*) dlsym(_BackendData, "destroy");
    const char* dlsym_error = dlerror();
@@ -273,7 +276,7 @@ dlerror();
        _BackendData = nullptr;
    }

    firstData.reset();
    
}
#endif