genesys: Fix memory leaks in global data

merge-requests/200/head
Povilas Kanapickas 2019-10-05 01:01:30 +03:00
rodzic 65d9497ff3
commit 643ac8eab2
2 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -2475,7 +2475,7 @@ void run_functions_at_backend_exit()
{ {
(*it)(); (*it)();
} }
s_functions_run_at_backend_exit.release(); s_functions_run_at_backend_exit.reset();
} }
void debug_dump(unsigned level, const Genesys_Settings& settings) void debug_dump(unsigned level, const Genesys_Settings& settings)

Wyświetl plik

@ -717,7 +717,7 @@ public:
void deinit() void deinit()
{ {
ptr_.release(); ptr_.reset();
} }
const T* operator->() const { return ptr_.get(); } const T* operator->() const { return ptr_.get(); }