Bug fix: Termination by memory leak.
authorminkee.lee <minkee.lee@samsung.com>
Wed, 21 May 2014 02:33:01 +0000 (11:33 +0900)
committerminkee.lee <minkee.lee@samsung.com>
Thu, 22 May 2014 09:25:12 +0000 (18:25 +0900)
- Problem was because frame resource of gif image is not disposed
when add-new button animation is in active state.

Change-Id: I99a150f52c981fee8fd8c3948cf912e2cf7948f1
Signed-off-by: minkee.lee <minkee.lee@samsung.com>
common-project/src/org/tizen/emulator/manager/ui/widgets/VMCreateButton.java

index 8054d5f..c5a0962 100644 (file)
@@ -92,6 +92,7 @@ public class VMCreateButton extends VMButton {
                                        if (aniImageData != null) {
                                                Image newImage = new Image(Display.getCurrent(), aniImageData);
                                                gc.drawImage(newImage, aniImageData.x +  W_OFFSET, aniImageData.y + H_OFFSET);
+                                               newImage.dispose();
                                        }
                                }
                        } else {