OSDN Git Service
(root)
/
opentween
/
open-tween.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bd43fe2
)
CancellationTokenSourceのDispose忘れを修正
author
Kimura Youichi
<kim.upsilon@bucyou.net>
Thu, 7 Nov 2013 14:43:40 +0000
(23:43 +0900)
committer
Kimura Youichi
<kim.upsilon@bucyou.net>
Thu, 7 Nov 2013 14:37:46 +0000
(23:37 +0900)
OpenTween/ImageCache.cs
patch
|
blob
|
history
diff --git
a/OpenTween/ImageCache.cs
b/OpenTween/ImageCache.cs
index
b4f0c16
..
3072da6
100644
(file)
--- a/
OpenTween/ImageCache.cs
+++ b/
OpenTween/ImageCache.cs
@@
-151,8
+151,11
@@
namespace OpenTween
{
lock (this.lockObject)
{
-
this.cancelTokenSource.Cancel()
;
+
var oldTokenSource = this.cancelTokenSource
;
this.cancelTokenSource = new CancellationTokenSource();
+
+ oldTokenSource.Cancel();
+ oldTokenSource.Dispose();
}
}