edje: Fix double free scenario caused by static pointer.
authorYoungbok Shin <youngb.shin@samsung.com>
Thu, 27 Aug 2015 10:04:57 +0000 (11:04 +0100)
committerTom Hacohen <tom@stosb.com>
Thu, 27 Aug 2015 10:06:23 +0000 (11:06 +0100)
commitf210e429663d9bdb0eadf46d42c0ae8742bc615c
treef3f49f9cb1cf8733321b06414edfe0db0f266316
parentbd8f585d74f472f686ea9f348f3dbded0d056a87
edje: Fix double free scenario caused by static pointer.

Summary:
The result of evas_object_textblock_cursor_content_get() API has to be cleaned
by outside.  _edje_entry_cursor_content_get() is calling free() inside of the
function for handle the result using static pointer. But, the caller of
_edje_entry_cursor_content_get() is already handling the result using free().
It can cause double free problem.

The bigger issue is in elementary. See elm_entry_cursor_content_get() API's
document. The document advice developers to free the result when it is done.

@fix

Test Plan: N/A

Reviewers: tasn, raster, woohyun

Subscribers: cedric

Differential Revision: https://phab.enlightenment.org/D2991
src/lib/edje/edje_entry.c