summaryrefslogtreecommitdiff
path: root/vcl/README.lifecycle
diff options
context:
space:
mode:
Diffstat (limited to 'vcl/README.lifecycle')
-rw-r--r--vcl/README.lifecycle4
1 files changed, 2 insertions, 2 deletions
diff --git a/vcl/README.lifecycle b/vcl/README.lifecycle
index c7dc05812b03..a309b65ef9ea 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:
- ModalDialog *pDlg = VclPtr<ModalDialog>(nullptr /* parent */);
+ Dialog *pDlg = VclPtr<Dialog>(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<ModalDialog> instead.
+ a VclPtr<Dialog> instead.
** It crashes with some invalid memory #2...