Skip to content

Commit bc73d35

Browse files
committed
wayland/screencopy: fix ScreencopyContext leak in ScreencopyView
Also caused an FD leak.
1 parent 6464ead commit bc73d35

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/wayland/screencopy/view.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,8 @@ void ScreencopyView::createContext() {
6666
return;
6767
}
6868

69+
this->context->setParent(this);
70+
6971
QObject::connect(
7072
this->context,
7173
&ScreencopyContext::stopped,

0 commit comments

Comments
 (0)