Commit e2bf8512 authored by Olivier Blin's avatar Olivier Blin Committed by Olivier Blin
Browse files

Fix private object leak in surface op/interface classes


Change-Id: I7ad508cb07a73d6699e9d2742ea029409f498a87
Reviewed-by: default avatarGiulio Camuffo <giulio.camuffo@jollamobile.com>
Showing with 8 additions and 0 deletions
...@@ -60,6 +60,7 @@ QWaylandSurfaceInterface::QWaylandSurfaceInterface(QWaylandSurface *surface) ...@@ -60,6 +60,7 @@ QWaylandSurfaceInterface::QWaylandSurfaceInterface(QWaylandSurface *surface)
QWaylandSurfaceInterface::~QWaylandSurfaceInterface() QWaylandSurfaceInterface::~QWaylandSurfaceInterface()
{ {
d->surface->removeInterface(this); d->surface->removeInterface(this);
delete d;
} }
QWaylandSurface *QWaylandSurfaceInterface::surface() const QWaylandSurface *QWaylandSurfaceInterface::surface() const
...@@ -96,6 +97,11 @@ QWaylandSurfaceOp::QWaylandSurfaceOp(int t) ...@@ -96,6 +97,11 @@ QWaylandSurfaceOp::QWaylandSurfaceOp(int t)
d->type = t; d->type = t;
} }
QWaylandSurfaceOp::~QWaylandSurfaceOp()
{
delete d;
}
int QWaylandSurfaceOp::type() const int QWaylandSurfaceOp::type() const
{ {
return d->type; return d->type;
......
...@@ -62,6 +62,8 @@ public: ...@@ -62,6 +62,8 @@ public:
}; };
QWaylandSurfaceOp(int t); QWaylandSurfaceOp(int t);
virtual ~QWaylandSurfaceOp();
int type() const; int type() const;
private: private:
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment