patch from Dimitri fixing a few memory leaks and unTABbing the sources
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14660 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -2871,7 +2871,7 @@ END_EVENT_TABLE()
|
||||
|
||||
DbGridFrame::DbGridFrame(wxWindow *parent)
|
||||
: wxFrame (parent, -1, wxT("Database Table"),
|
||||
wxDefaultPosition, wxSize(400, 325))
|
||||
wxDefaultPosition, wxSize(400, 325))
|
||||
{
|
||||
initialized = FALSE;
|
||||
}
|
||||
|
@@ -187,14 +187,14 @@ DECLARE_EVENT_TABLE()
|
||||
class DbGridFrame : public wxFrame
|
||||
{
|
||||
public:
|
||||
bool initialized;
|
||||
bool initialized;
|
||||
|
||||
DbGridFrame(wxWindow *parent);
|
||||
DbGridFrame(wxWindow *parent);
|
||||
|
||||
void OnCloseWindow(wxCloseEvent& event);
|
||||
bool Initialize();
|
||||
void OnCloseWindow(wxCloseEvent& event);
|
||||
bool Initialize();
|
||||
|
||||
DECLARE_EVENT_TABLE()
|
||||
DECLARE_EVENT_TABLE()
|
||||
};
|
||||
|
||||
#endif
|
||||
|
@@ -190,7 +190,7 @@ ClookUpDlg::ClookUpDlg(wxWindow *parent, wxChar *windowTitle, wxChar *tableName,
|
||||
widgetPtrsSet = TRUE;
|
||||
|
||||
// Query the lookup table and display the result set
|
||||
lookup = new Clookup(tableName, colName, pDb, defDir);
|
||||
lookup = new Clookup(tableName, colName, pDb, defDir);
|
||||
if (!lookup)
|
||||
{
|
||||
wxMessageBox(wxT("Error allocating memory for 'Clookup'object."),wxT("Error..."));
|
||||
@@ -295,7 +295,7 @@ ClookUpDlg::ClookUpDlg(wxWindow *parent, wxChar *windowTitle, wxChar *tableName,
|
||||
widgetPtrsSet = TRUE;
|
||||
|
||||
// Query the lookup table and display the result set
|
||||
lookup2 = new Clookup2(tableName, dispCol1, dispCol2, pDb, defDir);
|
||||
lookup2 = new Clookup2(tableName, dispCol1, dispCol2, pDb, defDir);
|
||||
if (!lookup2)
|
||||
{
|
||||
wxMessageBox(wxT("Error allocating memory for 'Clookup2' object."),wxT("Error..."));
|
||||
|
Reference in New Issue
Block a user