diff options
author | Gehad elrobey <gehadelrobey@gmail.com> | 2015-07-10 14:59:56 +0200 |
---|---|---|
committer | Lubomir I. Ivanov <neolit123@gmail.com> | 2015-07-20 15:27:36 +0300 |
commit | 51e36fa15805fdf64d68113ef66910f3f6c8eede (patch) | |
tree | aa818a071053a5d36aa2ce4d635b646db57c2905 /printer.h | |
parent | 85bce0fa0da575040b6e4ef04750475b9a9ae223 (diff) | |
download | subsurface-51e36fa15805fdf64d68113ef66910f3f6c8eede.tar.gz |
Printing: handle memory leak in printer class
Don't initialize new webview each time we print.
Delete the QWebView object in the destructor.
Signed-off-by: Gehad elrobey <gehadelrobey@gmail.com>
Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
Diffstat (limited to 'printer.h')
-rw-r--r-- | printer.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -29,6 +29,7 @@ private slots: public: Printer(QPrinter *printer, print_options *printOptions, template_options *templateOptions); + ~Printer(); void print(); signals: |