diff options
author | David Boddie <david.boddie@nokia.com> | 2010-09-22 11:55:23 (GMT) |
---|---|---|
committer | David Boddie <david.boddie@nokia.com> | 2010-09-22 11:55:23 (GMT) |
commit | 4859880f3bac7dd819839e014a019326c8dfd5ac (patch) | |
tree | c9af50aa5b3aded349fadbb1664edf1807858945 | |
parent | 8be22af064da6b5d8aaa25adbe3febc13ef53994 (diff) | |
download | Qt-4859880f3bac7dd819839e014a019326c8dfd5ac.zip Qt-4859880f3bac7dd819839e014a019326c8dfd5ac.tar.gz Qt-4859880f3bac7dd819839e014a019326c8dfd5ac.tar.bz2 |
Doc: Fixed a memory leak in the undo example.
Task-number: QTBUG-13705
Reviewed-by: Geir Vattekar
-rw-r--r-- | examples/tools/undoframework/mainwindow.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/tools/undoframework/mainwindow.cpp b/examples/tools/undoframework/mainwindow.cpp index b4b7ee5..90b4d3f 100644 --- a/examples/tools/undoframework/mainwindow.cpp +++ b/examples/tools/undoframework/mainwindow.cpp @@ -48,7 +48,7 @@ //! [0] MainWindow::MainWindow() { - undoStack = new QUndoStack(); + undoStack = new QUndoStack(this); createActions(); createMenus(); |