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>
This commit is contained in:
Gehad elrobey 2015-07-10 14:59:56 +02:00 committed by Lubomir I. Ivanov
parent 85bce0fa0d
commit 51e36fa158
2 changed files with 7 additions and 1 deletions

View file

@ -29,6 +29,7 @@ private slots:
public:
Printer(QPrinter *printer, print_options *printOptions, template_options *templateOptions);
~Printer();
void print();
signals: