fixed bug (CursorTimer leak)
authorChulheon <ch.jeong47@samsung.com>
Fri, 1 Nov 2013 05:27:53 +0000 (14:27 +0900)
committerChulheon <ch.jeong47@samsung.com>
Fri, 1 Nov 2013 05:36:10 +0000 (14:36 +0900)
Change-Id: Ib49c9311419695b38f949dd398b655e9eee73c4a

src/ui/controls/FUiCtrl_EditPresenter.cpp

index 1a28adb..154527f 100644 (file)
@@ -7214,6 +7214,13 @@ _EditPresenter::OnFocusLost(void)
 
        ReplaceTextIntoPasswordHyphenString();
 
+       if (__pCursorTimer)
+       {
+               __pCursorTimer->Cancel();
+               delete __pCursorTimer;
+               __pCursorTimer = null;
+       }
+
        __pEdit->Invalidate();
 
        return true;
@@ -8991,7 +8998,13 @@ _EditPresenter::OnCursorTimerExpired(void)
 {
        if (!IsCurrentFocused() ||  __isCursorDisabled)
        {
-               StopCursorTimer();
+               if (__pCursorTimer)
+               {
+                       __pCursorTimer->Cancel();
+                       delete __pCursorTimer;
+                       __pCursorTimer = null;
+               }
+
                return;
        }