mirror of
https://github.com/obsproject/obs-studio.git
synced 2024-06-30 08:33:32 +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;
|
||||
|
||||
public:
|
||||
SurfaceEventFilter(OBSQTDisplay *src) : display(src) {}
|
||||
SurfaceEventFilter(OBSQTDisplay *src) : QObject(src), display(src) {}
|
||||
|
||||
protected:
|
||||
bool eventFilter(QObject *obj, QEvent *event) override
|
||||
|
|
Loading…
Reference in a new issue