X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/3ca6a5f04692678cd2d9f3ea0843fc3f5a0b254f..38cfbffa153c8835025b4207faaf0a12b0b53e6f:/samples/db/dbtest.cpp diff --git a/samples/db/dbtest.cpp b/samples/db/dbtest.cpp index 9643f3dff5..e55f40401b 100644 --- a/samples/db/dbtest.cpp +++ b/samples/db/dbtest.cpp @@ -388,7 +388,7 @@ void DatabaseDemoFrame::CreateDataTable(bool recreate) wxEndBusyCursor(); delete Contact; - Contact = NULL; + Contact = NULL; if (success) wxMessageBox("Table and index(es) were successfully created.","Notice...",wxOK | wxICON_INFORMATION); @@ -405,7 +405,7 @@ void DatabaseDemoFrame::BuildEditorDialog() if (!pEditorDlg->initialized) { pEditorDlg->Close(); - delete pEditorDlg; + pEditorDlg = NULL; wxMessageBox("Unable to initialize the editor dialog for some reason","Error...",wxOK | wxICON_EXCLAMATION); DemoFrame->Close(); } @@ -918,14 +918,14 @@ bool CeditorDlg::Initialize() if (!Contact->Open()) { // Table does exist, or there was some problem opening it. Currently this should - // never fail, except in the case of the table not exisiting or the current + // never fail, except in the case of the table not exisiting or the current // user has insufficent privileges to access the table #if 0 // This code is experimenting with a new function that will hopefully be available // in the 2.4 release. This check will determine whether the open failing was due // to the table not existing, or the users privileges being insufficient to // open the table. - if (!Contact->GetDb()->TablePrivileges(CONTACT_TABLE_NAME,"SELECT",Contact->GetDb()->GetUsername(),DbConnectInf.defaultDir)) + if (!Contact->GetDb()->TablePrivileges(CONTACT_TABLE_NAME,"SELECT",Contact->GetDb()->GetUsername(),Contact->GetDb()->GetUsername(),DbConnectInf.defaultDir)) { wxString tStr; tStr.Printf("Unable to open the table '%s'.\n\n",CONTACT_TABLE_NAME); @@ -1646,7 +1646,7 @@ void CparameterDlg::FillDataSourceList() for (i = 0; wxStrlen(p[i]); i++) pParamODBCSourceList->Append(p[i]); - delete p; + delete [] p; } // CparameterDlg::CparameterDlg::FillDataSourceList()