eglfs_viv_wl: Clean up the wl_display

Task-number: QTBUG-74879
Change-Id: Idb39a39a10bccb1822bdb80343fbe1b5c92560e9
Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io>
This commit is contained in:
Johan Klokkhammer Helsing 2019-04-05 09:50:16 +02:00 committed by Johan Helsing
parent eaf20420f8
commit 0bdded64ac
2 changed files with 6 additions and 0 deletions

View File

@ -66,6 +66,11 @@ void QEglFSVivWaylandIntegration::platformInit()
mScreenSize.setWidth(width);
}
void QEglFSVivWaylandIntegration::platformDestroy()
{
wl_display_destroy(mWaylandDisplay);
}
QSize QEglFSVivWaylandIntegration::screenSize() const
{
return mScreenSize;

View File

@ -49,6 +49,7 @@ class QEglFSVivWaylandIntegration : public QEglFSDeviceIntegration
{
public:
void platformInit() override;
void platformDestroy() override;
QSize screenSize() const override;
EGLNativeWindowType createNativeWindow(QPlatformWindow *window, const QSize &size, const QSurfaceFormat &format) override;
void destroyNativeWindow(EGLNativeWindowType window) override;