diff options
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/README.lifecycle | 4 | ||||
-rw-r--r-- | vcl/qa/cppunit/lifecycle.cxx | 1 |
2 files changed, 2 insertions, 3 deletions
diff --git a/vcl/README.lifecycle b/vcl/README.lifecycle index dc6286210780..d9d186425b64 100644 --- a/vcl/README.lifecycle +++ b/vcl/README.lifecycle @@ -308,11 +308,11 @@ ways and often both. Window that has already been destroyed. This can easily happen via this sort of pattern: - ModelessDialog *pDlg = VclPtr<ModelessDialog>(nullptr /* parent */); + ModalDialog *pDlg = VclPtr<ModalDialog>(nullptr /* parent */); // by here the pDlg quite probably points to free'd memory... It is necessary in these cases to ensure that the *pDlg is - a VclPtr<ModelessDialog> instead. + a VclPtr<ModalDialog> instead. ** It crashes with some invalid memory #2... diff --git a/vcl/qa/cppunit/lifecycle.cxx b/vcl/qa/cppunit/lifecycle.cxx index 118114736c6a..98db6704e28a 100644 --- a/vcl/qa/cppunit/lifecycle.cxx +++ b/vcl/qa/cppunit/lifecycle.cxx @@ -299,7 +299,6 @@ void LifecycleTest::testLeakage() aObjects.push_back(LeakTestObject::Create<VclVButtonBox>(xVBox)); } - aObjects.push_back(LeakTestObject::Create<ModelessDialog>(xParent, "PrintProgressDialog", "vcl/ui/printprogressdialog.ui")); aObjects.push_back(LeakTestObject::Create<ModalDialog>(xParent, "PrintProgressDialog", "vcl/ui/printprogressdialog.ui")); xParent.clear(); |