summaryrefslogtreecommitdiff
path: root/plugins/Dbx_tree/src/DatabaseLink.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2012-10-15 19:20:04 +0000
committerGeorge Hazan <george.hazan@gmail.com>2012-10-15 19:20:04 +0000
commitebef37bfd2ef5e4b8c6adcd9a9526c1598ee4b41 (patch)
tree21f077a620b39a17f7d0ea89226557234ae156c0 /plugins/Dbx_tree/src/DatabaseLink.cpp
parent4b82767c843b4fe3b951bec8adf8f5e532f6ccb3 (diff)
forgotten clutch extermination, amdg
git-svn-id: http://svn.miranda-ng.org/main/trunk@1949 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Dbx_tree/src/DatabaseLink.cpp')
-rw-r--r--plugins/Dbx_tree/src/DatabaseLink.cpp8
1 files changed, 3 insertions, 5 deletions
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;
}