/[EmuXPortal]/trunk/EmuXPortal/Form1.cs
ViewVC logotype

Diff of /trunk/EmuXPortal/Form1.cs

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

--- trunk/EmuXPortal/Form1.cs	2012/06/19 03:38:40	85
+++ trunk/EmuXPortal/Form1.cs	2012/08/22 02:36:47	105
@@ -391,7 +391,7 @@
                 game_ctrl.Dock = DockStyle.Top;
                 game_ctrl.Width = this.Width - 10;
                 game_ctrl.Tag = config;
-                game_ctrl.GameImage = config.RomImage;
+                game_ctrl.GameImage = (Image)config.RomImage.Clone();
                 game_ctrl.GameName = config.RomTitle;
                 game_ctrl.PreviewKeyDown += new PreviewKeyDownEventHandler(game_ctrl_PreviewKeyDown);
                 game_ctrl.GotFocus += new EventHandler(game_ctrl_GotFocus);
@@ -408,6 +408,7 @@
                 count++;
             }
             e.Result = t;
+            parser.Dispose();
         }
         private void gameWorker_ProgressChanged(object sender, ProgressChangedEventArgs e) { }
         private void gameWorker_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e)
@@ -443,7 +444,7 @@
                 platform_ctrl.Dock = DockStyle.Top;
                 platform_ctrl.Width = this.Width - 10;
                 platform_ctrl.Tag = config;
-                platform_ctrl.PlatformImage = config.PlatformImage;
+                platform_ctrl.PlatformImage = (Image)config.PlatformImage.Clone();
                 platform_ctrl.PlatformName = config.ToString();
                 platform_ctrl.PreviewKeyDown += new PreviewKeyDownEventHandler(platform_ctrl_PreviewKeyDown);
                 platform_ctrl.GotFocus += new EventHandler(platform_ctrl_GotFocus);
@@ -459,6 +460,7 @@
                 count++;
             }
             e.Result = t;
+            parser.Dispose();
         }
         private void platformWorker_ProgressChanged(object sender, ProgressChangedEventArgs e) { }
         private void platformWorker_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e)

 

  ViewVC Help
Powered by ViewVC 1.1.22