Fix a memory leak

The dynamically allocated QtWayland::zwlr_layer_shell_v1 object in
QWaylandLayerShellIntegration::registryLayer() isn't deleted anywhere.
This commit is contained in:
Vlad Zahorodnii
2021-04-20 18:20:33 +03:00
committed by Aleix Pol Gonzalez
parent efd32eed53
commit 93f3ed2c07
3 changed files with 4 additions and 4 deletions

View File

@ -20,7 +20,7 @@ namespace LayerShellQt
class LAYERSHELLQT_EXPORT QWaylandLayerShell : public QtWayland::zwlr_layer_shell_v1
{
public:
QWaylandLayerShell(QtWayland::zwlr_layer_shell_v1 *shell);
QWaylandLayerShell(::wl_registry *registry, uint32_t id, uint32_t version);
virtual ~QWaylandLayerShell();
QWaylandLayerSurface *createLayerSurface(QtWaylandClient::QWaylandWindow *window);