PDA

View Full Version : Regarding QProcess-Readstdout



SYR
11th March 2011, 12:05
Hi to all
Is it necessary to delete QProcess objects which are created using new operator.

stampede
11th March 2011, 12:21
How is this related to ReadStdout ? :)
If it has a parent, then it'll be deleted automatically when parent object is deleted (as its derived from QObject).
If not, then you must delete it, if you don't want to have a memory leak. Process managed by QProcess object may be finished, but still you have memory associated with the QProcess object itself.