mirror of
https://github.com/Ryujinx/GtkSharp.git
synced 2024-12-23 14:55:40 +00:00
cairo: Don't log warnings during VM shutdown
Else it can explode pretty badly if the Console streams are finalized before the Cairo objects.
This commit is contained in:
parent
0fd72adae0
commit
c77fa9d048
|
@ -58,6 +58,9 @@ namespace Cairo {
|
|||
if (disposing && !Enabled)
|
||||
throw new InvalidOperationException ();
|
||||
|
||||
if (Environment.HasShutdownStarted)
|
||||
return;
|
||||
|
||||
if (!disposing) {
|
||||
Console.Error.WriteLine ("{0} is leaking, programmer is missing a call to Dispose", typeof(T).FullName);
|
||||
if (Enabled) {
|
||||
|
|
Loading…
Reference in a new issue