Login  Register

Re: Object not deleted in main/qc_applicationwindow.cpp

Posted by R. van Twisk on Jul 24, 2011; 12:51pm
URL: https://forum.librecad.org/Object-not-deleted-in-main-qc-applicationwindow-cpp-tp4627858p4627868.html

Claude,

this is properly true I also see the same for slotFilePrint
where the painter isn't deleted.

Ries
On Jul 24, 2011, at 7:43 AM, ClaudeQC [via LibreCAD] wrote:


Hello,

- In main/qc_applicationwindow.cpp, in the following function:
        slotFileExport( const QString& name, const QString& format,
                        QSize size, bool black, bool bw)

  The "painter" object is not deleted at the end of the export process.
 
- Code look like below:

    // GraphicView deletes painter
    painter->end();
    delete buffer;

- Should it be like:

    // GraphicView deletes painter
    painter->end();
    delete painter;
    delete buffer;


Claude




If you reply to this email, your message will be added to the discussion below:
http://librecad.1049103.n5.nabble.com/Object-not-deleted-in-main-qc-applicationwindow-cpp-tp4627858p4627858.html
To start a new topic under LibreCAD, email [hidden email]
To unsubscribe from LibreCAD, click here.