mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
Do not recycle filters list as it is not creating new filter instances
just reusing it.
This commit is contained in:
@@ -823,7 +823,7 @@ namespace DiscImageChef.ImagePlugins
|
||||
int currentLocator = 0;
|
||||
bool locatorFound = false;
|
||||
string parentPath = null;
|
||||
FiltersList filters = new FiltersList();
|
||||
FiltersList filters;
|
||||
|
||||
while(!locatorFound && currentLocator < 8)
|
||||
{
|
||||
@@ -852,7 +852,7 @@ namespace DiscImageChef.ImagePlugins
|
||||
if(parentPath != null)
|
||||
{
|
||||
DicConsole.DebugWriteLine("VirtualPC plugin", "Possible parent path: \"{0}\"", parentPath);
|
||||
Filter parentFilter = filters.GetFilter(Path.Combine(imageFilter.GetParentFolder(), parentPath));
|
||||
Filter parentFilter = new FiltersList().GetFilter(Path.Combine(imageFilter.GetParentFolder(), parentPath));
|
||||
|
||||
if(parentFilter != null)
|
||||
locatorFound = true;
|
||||
@@ -868,7 +868,7 @@ namespace DiscImageChef.ImagePlugins
|
||||
else
|
||||
{
|
||||
parentImage = new VHD();
|
||||
Filter parentFilter = filters.GetFilter(Path.Combine(imageFilter.GetParentFolder(), parentPath));
|
||||
Filter parentFilter = new FiltersList().GetFilter(Path.Combine(imageFilter.GetParentFolder(), parentPath));
|
||||
|
||||
if(parentFilter == null)
|
||||
throw new ImageNotSupportedException("(VirtualPC plugin): Cannot find parent image filter");
|
||||
|
||||
Reference in New Issue
Block a user