elementary: Check for valid frame object

Summary:
Make sure we have a valid frame object before calling edje & evas
functions on it. This patch fixes an issue where NULL is being passed
to eo functions

ref T7030

Reviewers: zmike

Reviewed By: zmike

Subscribers: cedric, #committers

Tags: #efl

Maniphest Tasks: T7030

Differential Revision: https://phab.enlightenment.org/D6637
This commit is contained in:
Chris Michael 2018-07-25 14:57:14 -04:00 committed by Chris Michael
parent 6fbcff15db
commit 843b5177df
1 changed files with 6 additions and 2 deletions

View File

@ -995,8 +995,12 @@ _elm_win_pre_render(Ecore_Evas *ee)
{
int mw, mh;
edje_object_thaw(sd->frame_obj);
evas_object_show(sd->frame_obj);
if (sd->type != ELM_WIN_FAKE)
{
edje_object_thaw(sd->frame_obj);
evas_object_show(sd->frame_obj);
}
_elm_win_frame_style_update(sd, 1, 1);
ELM_WIN_DATA_ALIVE_CHECK(obj, sd);