summaryrefslogtreecommitdiff
path: root/src/modules/database/database.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2013-12-30 11:58:42 +0000
committerGeorge Hazan <george.hazan@gmail.com>2013-12-30 11:58:42 +0000
commitae0525e4ceb7f88b808ff94458a4768c9f3cc264 (patch)
tree3bf440fa3d804864d3b6e543a8f4fca9dd33c42c /src/modules/database/database.cpp
parent4f7b7a42636590c51d0d87063d8c1ab5ca71db99 (diff)
code cleaning
git-svn-id: http://svn.miranda-ng.org/main/trunk@7424 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'src/modules/database/database.cpp')
-rw-r--r--src/modules/database/database.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/modules/database/database.cpp b/src/modules/database/database.cpp
index ae2a0d8cd4..377ec31933 100644
--- a/src/modules/database/database.cpp
+++ b/src/modules/database/database.cpp
@@ -354,7 +354,6 @@ int tryOpenDatabase(const TCHAR *tszProfile)
db_setCurrent(currDb = pDb);
return 0;
}
- delete pDb;
}
else {
switch (err) {
@@ -468,7 +467,7 @@ int LoadDatabaseModule(void)
mir_sntprintf(buf, SIZEOF(buf), TranslateT("Miranda was unable to open '%s', it's in an unknown format.\nThis profile might also be damaged, please run DbChecker which should be installed."), p ? ++p : szProfile);
MessageBox(0, buf, TranslateT("Miranda can't understand that profile"), MB_OK | MB_ICONERROR);
}
- else if ( !FindMirandaForProfile(szProfile)) {
+ else if (!FindMirandaForProfile(szProfile)) {
TCHAR buf[256];
TCHAR* p = _tcsrchr(szProfile, '\\');
mir_sntprintf(buf, SIZEOF(buf), TranslateT("Miranda was unable to open '%s'\nIt's inaccessible or used by other application or Miranda instance"), p ? ++p : szProfile);