mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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:
parent
85bce0fa0d
commit
51e36fa158
2 changed files with 7 additions and 1 deletions
|
|
@ -29,6 +29,7 @@ private slots:
|
|||
|
||||
public:
|
||||
Printer(QPrinter *printer, print_options *printOptions, template_options *templateOptions);
|
||||
~Printer();
|
||||
void print();
|
||||
|
||||
signals:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue