Login  Register

Re: Object not deleted in main/qc_applicationwindow.cpp

Posted by ClaudeQC on Jul 24, 2011; 2:38pm
URL: https://forum.librecad.org/Object-not-deleted-in-main-qc-applicationwindow-cpp-tp4627858p4628044.html


On 24/07/2011 09:15, R. van Twisk [via LibreCAD] wrote:

 > Claude,
 >
 > what if we just do it like this??
 > This way we don't have to worry about deleting the painter at all.
 >

Hello Ries,

- I don't like creating objects in the stack.
   Prefer to create them in the heap memory (with new).

- I don't know RS_PainterQt class.
   If this class is not too big in term of data memory usage, it may be
   acceptable to create associated objects in the stack.


Claude