projects
/
apps
/
osp
/
Calendar.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1ed6604
)
Resolve prevent defect.
author
SungWan Kim
<sw0726.kim@samsung.com>
Tue, 16 Apr 2013 01:03:58 +0000
(10:03 +0900)
committer
SungWan Kim
<sw0726.kim@samsung.com>
Tue, 16 Apr 2013 01:03:58 +0000
(10:03 +0900)
Change-Id: I42b4b35901f64bdec0ba339341b49b035cc50ff6
Signed-off-by: SungWan Kim <sw0726.kim@samsung.com>
src/ClRepeatForm.cpp
patch
|
blob
|
history
diff --git
a/src/ClRepeatForm.cpp
b/src/ClRepeatForm.cpp
index
86e58f8
..
1d4b4b9
100644
(file)
--- a/
src/ClRepeatForm.cpp
+++ b/
src/ClRepeatForm.cpp
@@
-341,7
+341,10
@@
RepeatForm::CreateItem(int sectionIndex, int itemIndex, int itemWidth)
pContent->SetTextConfig(FONT_SIZE_REPEAT_UNTIL_TYPE, LABEL_TEXT_STYLE_NORMAL);
pContent->SetTextHorizontalAlignment(ALIGNMENT_LEFT);
- pItem->AddControl(pContent);
+ if (pItem->AddControl(pContent) != E_SUCCESS)
+ {
+ delete pContent;
+ }
return pItem;
}