File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed
Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -11,11 +11,12 @@ GraphicsWebViewTestWindows::GraphicsWebViewTestWindows(QWidget *parent) :
1111 this ->setWindowTitle (" Test Widget" );
1212
1313 QGraphicsScene *pScene = new QGraphicsScene ();
14- QGraphicsWebView * pWebView = new QGraphicsWebView ();
14+ pWebView = new QGraphicsWebView ();
1515 pScene->addItem (pWebView);
1616
1717 this ->setScene (pScene);
1818}
1919
20- GraphicsWebViewTestWindows::~GraphicsWebViewTestWindows () {}
21-
20+ GraphicsWebViewTestWindows::~GraphicsWebViewTestWindows () {
21+ delete pWebView;
22+ }
Original file line number Diff line number Diff line change @@ -17,6 +17,8 @@ class GraphicsWebViewTestWindows : public QGraphicsView
1717public:
1818 explicit GraphicsWebViewTestWindows (QWidget *parent = 0 );
1919 ~GraphicsWebViewTestWindows ();
20+ private:
21+ QGraphicsWebView *pWebView;
2022};
2123
2224#endif // GRAPHICS_WEB_VIEW_TEST_H
You can’t perform that action at this time.
0 commit comments