OSDN Git Service

TweetThumbnailのコンテキストメニューでのメモリリークについて対処
authorKimura Youichi <kim.upsilon@bucyou.net>
Mon, 16 Jun 2014 05:23:08 +0000 (14:23 +0900)
committerKimura Youichi <kim.upsilon@bucyou.net>
Mon, 16 Jun 2014 16:04:33 +0000 (01:04 +0900)
OpenTween/TweetThumbnail.cs

index 85bc225..b784fc4 100644 (file)
@@ -133,6 +133,9 @@ namespace OpenTween
 
                     if (memoryImage != null)
                         memoryImage.Dispose();
+
+                    // メモリリーク対策 (http://stackoverflow.com/questions/2792427#2793714)
+                    picbox.ContextMenuStrip = null;
                 }
                 this.pictureBox.Clear();