fix crash if .dll not found

This commit is contained in:
chudov
2008-11-05 03:58:46 +00:00
parent 39c7b52add
commit 8ea8f7d472

View File

@@ -194,7 +194,8 @@ namespace HDCDDotNet
#if !MONO
if (_decoder != IntPtr.Zero)
hdcd_decoder_delete(_decoder);
_gch.Free();
if (_gch.IsAllocated)
_gch.Free();
#endif
}