Fixed a memory leak in the WPF project
This commit is contained in:
@@ -147,6 +147,8 @@ namespace Audio_Router
|
||||
InputAudioComboBox.Items.Add(sourceDevices[i].Name);
|
||||
}
|
||||
}
|
||||
|
||||
// Set output device & add to inputs too
|
||||
for (int i = 0; i < targetDevices.Count; i++)
|
||||
{
|
||||
if(targetDevices[i].Id == defaultOutput.Id)
|
||||
@@ -211,7 +213,6 @@ namespace Audio_Router
|
||||
};
|
||||
result = await AudioGraph.CreateAsync(settings);
|
||||
ag = result.Graph;
|
||||
|
||||
if (result.Status != AudioGraphCreationStatus.Success)
|
||||
{
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user