[QGIS-trac] Re: [Quantum GIS] #3531: Bug: QgisApp instance never
delete
Quantum GIS
qgis at qgis.org
Sun Apr 17 09:28:08 EDT 2011
#3531: Bug: QgisApp instance never delete
------------------------------------------------------+---------------------
Reporter: 05092009 | Owner: nobody
Type: bug | Status: new
Priority: major: does not work as expected | Milestone: Version 1.7.0
Component: GUI | Version: Trunk
Keywords: QgissApp, big memory leak, serious bug | Platform_version:
Platform: All | Must_fix: Yes
Status_info: 0 |
------------------------------------------------------+---------------------
Comment(by 05092009):
Just set a breakpoint in QgisApp's destructor, and close application.
Debugger won't go there.
Try to have a look on the code. QgisApp, as you know, is a singleton. It's
instance is created in funcion main (main.cpp), but instance should be
deleted in a straightforward way, by calling delete. Instead of these, no
delete called and main just returns QApplication's exec.
That causes all the data, associated with QgisApp to stay in memory 4ever.
--
Ticket URL: <https://trac.osgeo.org/qgis/ticket/3531#comment:3>
Quantum GIS <http://qgis.org>
Quantum GIS is an Open Source GIS supporting GDAL/OGR, PostGIS, and GRASS formats, and Web Services
More information about the QGIS-trac
mailing list