From ebef37bfd2ef5e4b8c6adcd9a9526c1598ee4b41 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 15 Oct 2012 19:20:04 +0000 Subject: forgotten clutch extermination, amdg git-svn-id: http://svn.miranda-ng.org/main/trunk@1949 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/Dbx_tree/src/DatabaseLink.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'plugins/Dbx_tree/src/DatabaseLink.cpp') diff --git a/plugins/Dbx_tree/src/DatabaseLink.cpp b/plugins/Dbx_tree/src/DatabaseLink.cpp index cc944cc305..8c99052eb6 100644 --- a/plugins/Dbx_tree/src/DatabaseLink.cpp +++ b/plugins/Dbx_tree/src/DatabaseLink.cpp @@ -65,9 +65,9 @@ Returns: 0 on success, nonzero on failure static MIDatabase* LoadDatabase(const TCHAR *profile) { - gDataBase = new CDataBase(profile); - gDataBase->OpenDB(); - return gDataBase; + CDataBase* pDb = new CDataBase(profile); + pDb->OpenDB(); + return pDb; } /* @@ -78,8 +78,6 @@ Note: Unload() might be called even if Load(void) was never called, wasLoaded is static int UnloadDatabase(MIDatabase* db) { - if (gDataBase == db) - gDataBase = NULL; delete (CDataBase*)db; return 0; } -- cgit v1.2.3