/// <inheritdoc/> public void Dispose() { if (metaData != null) { metaData.Dispose(); } metaData = null; }
public void Dispose() { if (ownPeImage) { if (metaData != null) { metaData.Dispose(); } if (peImage != null) { peImage.Dispose(); } } if (peStream != null) { peStream.Dispose(); } metaData = null; peImage = null; peStream = null; }
public bool MakePublic() { try { try { md = MetaDataCreator.CreateMetaData(new PEImage(data)); } catch (IOException) { return(false); } catch (BadImageFormatException) { return(false); } UpdateTypeDefTable(); UpdateFieldTable(); UpdateMethodTable(); UpdateExportedTypeTable(); return(true); } finally { md?.Dispose(); } }
public override void Dispose() { pdbMetaData.Dispose(); }