[Uml-devel] Small diff: explicit delete QCanvas in destructor of UMLView
Achim Spangler
Achim.Spangler at mnet-online.de
Tue Jul 13 04:40:01 UTC 2004
Hi,
I forgot a small patch, I created locally during my X11 memory problem
tracking.
The documentation of Qt states for QCanvasView::~QCanvasView ()
---------
Destroys the canvas view. The associated canvas is not deleted.
---------
==> thus we should delete the QCanvas of a UMLView instance during its
destructor.
This is implemented by the attached small patch.
This solves no crash - but probably one of the existing memory holes. At least
it's better to do jobs which are suggested by the doc ... ;-)
Bye,
Achim
-------------- next part --------------
A non-text attachment was scrubbed...
Name: DeleteCanvasInDestructor.diff
Type: text/x-diff
Size: 775 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/umbrello-devel/attachments/20040713/d9bf73ee/attachment.bin>
More information about the umbrello-devel
mailing list