projects
/
platform
/
core
/
csapi
/
opentk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
57c2f89
)
[OpenTK] Dispose() now clear the list of resources
author
thefiddler
<stapostol@gmail.com>
Wed, 23 Jul 2014 19:20:28 +0000
(21:20 +0200)
committer
thefiddler
<stapostol@gmail.com>
Wed, 23 Jul 2014 19:20:28 +0000
(21:20 +0200)
Source/OpenTK/Platform/PlatformFactoryBase.cs
patch
|
blob
|
history
diff --git
a/Source/OpenTK/Platform/PlatformFactoryBase.cs
b/Source/OpenTK/Platform/PlatformFactoryBase.cs
index
a97c2da
..
69341d7
100644
(file)
--- a/
Source/OpenTK/Platform/PlatformFactoryBase.cs
+++ b/
Source/OpenTK/Platform/PlatformFactoryBase.cs
@@
-114,11
+114,13
@@
namespace OpenTK.Platform
{
resource.Dispose();
}
+ Resources.Clear();
}
}
else
{
- Debug.Print("[OpenTK] {0} leaked, did you forget to call Dispose()?", GetType());
+ Debug.Print("[OpenTK] {0} leaked with {1} live resources, did you forget to call Dispose()?",
+ GetType().FullName, Resources.Count);
}
IsDisposed = true;
}