elc_popup: add null pointer check before creating content text object
authortaehyub <taehyub.kim@samsung.com>
Wed, 25 Mar 2015 18:02:15 +0000 (03:02 +0900)
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>
Wed, 25 Mar 2015 18:02:15 +0000 (03:02 +0900)
commitd48b15b2fd5726bc98991a646bb3b37016dbb6bc
tree92d970b93d725a418deadd72c205ad915f076c6c
parentc361c9e839daa44fb13490827664eabdc0d60941
elc_popup: add null pointer check before creating content text object

Summary:
If elm_object_text_set() function is called twice,
elm_obj_containter_content_set(CONTENT_PART, sd->text_content_obj)
function makes sd->text_content_obj null since sd->text_content_obj already exists.

Test Plan:
1. run elementary_test(popup) and excute "popup-center-text + 1button (check hide, show)"
2. print sd->text_content_obj value in content_text_set()
3. push hide button and excute the example again
4. check sd->text_content_obj value if null or not

Reviewers: woohyun, Hermet, raster

Reviewed By: raster

Differential Revision: https://phab.enlightenment.org/D2225
legacy/elementary/src/lib/elc_popup.c