forked from quickshell/quickshell
		
	dbus/properties: fix QDBusPendingCallWatcher leak
This commit is contained in:
		
							parent
							
								
									a1d82729bc
								
							
						
					
					
						commit
						74d1bb9bc2
					
				
					 1 changed files with 2 additions and 1 deletions
				
			
		| 
						 | 
					@ -104,6 +104,8 @@ void asyncReadPropertyInternal(
 | 
				
			||||||
				return demarshallVariant(reply.value().variant(), type, slot);
 | 
									return demarshallVariant(reply.value().variant(), type, slot);
 | 
				
			||||||
			}
 | 
								}
 | 
				
			||||||
		});
 | 
							});
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
							delete call;
 | 
				
			||||||
	};
 | 
						};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	QObject::connect(call, &QDBusPendingCallWatcher::finished, &interface, responseCallback);
 | 
						QObject::connect(call, &QDBusPendingCallWatcher::finished, &interface, responseCallback);
 | 
				
			||||||
| 
						 | 
					@ -231,7 +233,6 @@ void DBusPropertyGroup::updateAllViaGetAll() {
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		delete call;
 | 
							delete call;
 | 
				
			||||||
 | 
					 | 
				
			||||||
		emit this->getAllFinished();
 | 
							emit this->getAllFinished();
 | 
				
			||||||
	};
 | 
						};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue