mirror of
https://github.com/debauchee/barrier.git
synced 2026-05-07 22:23:12 +08:00
Fixed memory leak
This commit is contained in:
@@ -917,6 +917,9 @@ bool MainWindow::isServiceRunning(QString name)
|
||||
array[length] = '\0';
|
||||
|
||||
hService = OpenService(hSCManager, array, SERVICE_QUERY_STATUS);
|
||||
|
||||
delete[] array;
|
||||
|
||||
if (hService == NULL) {
|
||||
appendLogNote("failed to open " + name + "service, error: " +
|
||||
GetLastError());
|
||||
|
||||
Reference in New Issue
Block a user