mirror of
https://github.com/obsproject/obs-studio.git
synced 2024-07-04 10:33:30 +00:00
UI: Fix memory leak in OBSQTDisplay
In my previous commit fd502cbd4
, SurfaceEventFilter was not destroyed
and caused memory leaks.
This commit is contained in:
parent
8e66cb823c
commit
ad740735d2
|
@ -17,7 +17,7 @@ class SurfaceEventFilter : public QObject {
|
||||||
OBSQTDisplay *display;
|
OBSQTDisplay *display;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
SurfaceEventFilter(OBSQTDisplay *src) : display(src) {}
|
SurfaceEventFilter(OBSQTDisplay *src) : QObject(src), display(src) {}
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
bool eventFilter(QObject *obj, QEvent *event) override
|
bool eventFilter(QObject *obj, QEvent *event) override
|
||||||
|
|
Loading…
Reference in a new issue