public void Dispose() { if (peImage != null) { peImage.Dispose(); } }
public byte[] Unpack() { byte[] data = null; MyPEImage myPeImage = null; try { myPeImage = new MyPEImage(peImage); data = Unpack2(myPeImage); } catch { } finally { if (myPeImage != null) { myPeImage.Dispose(); } } if (data != null) { return(data); } if (shouldUnpack) { Logger.w("Could not unpack file: {0}", peImage.FileName ?? "(unknown filename)"); } return(null); }
void FreePEImage() { if (peImage != null) { peImage.Dispose(); } peImage = null; }
public void Dispose() { if (peImage != null) { peImage.Dispose(); } peImage = null; reader = null; }
public byte[] Unpack() { byte[] data = null; MyPEImage myPeImage = null; try { myPeImage = new MyPEImage(peImage); data = Unpack2(myPeImage); } catch { } finally { if (myPeImage != null) myPeImage.Dispose(); } if (data != null) return data; if (shouldUnpack) Logger.w("Could not unpack file: {0}", peImage.FileName ?? "(unknown filename)"); return null; }