mirror of
https://github.com/Ryujinx/GtkSharp.git
synced 2024-09-07 07:23:18 +02: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)
|
if (disposing && !Enabled)
|
||||||
throw new InvalidOperationException ();
|
throw new InvalidOperationException ();
|
||||||
|
|
||||||
|
if (Environment.HasShutdownStarted)
|
||||||
|
return;
|
||||||
|
|
||||||
if (!disposing) {
|
if (!disposing) {
|
||||||
Console.Error.WriteLine ("{0} is leaking, programmer is missing a call to Dispose", typeof(T).FullName);
|
Console.Error.WriteLine ("{0} is leaking, programmer is missing a call to Dispose", typeof(T).FullName);
|
||||||
if (Enabled) {
|
if (Enabled) {
|
||||||
|
Loading…
Reference in New Issue
Block a user