mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2026-10-26 14:00:08 +00:00
Fix leak of UIComputerViews that poll forever
This commit is contained in:
1 parent
3555d60a9b
commit
dc00c1e3e7
1 file changed
+5
-1
@@ -183,7 +183,11 @@ static const int LABEL_DY = 20;
|
|||||||
|
|
||||||
- (void) updateLoop {
|
- (void) updateLoop {
|
||||||
[self updateContentsForHost:_host];
|
[self updateContentsForHost:_host];
|
||||||
[self performSelector:@selector(updateLoop) withObject:self afterDelay:REFRESH_CYCLE];
|
|
||||||
|
// Stop updating when we detach from our parent view
|
||||||
|
if (self.superview != nil) {
|
||||||
|
[self performSelector:@selector(updateLoop) withObject:self afterDelay:REFRESH_CYCLE];
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void) hostLongClicked:(UILongPressGestureRecognizer*)gesture {
|
- (void) hostLongClicked:(UILongPressGestureRecognizer*)gesture {
|
||||||
|
|||||||
Reference in new issue
Block a user