aboutsummaryrefslogtreecommitdiffstats
path: root/legacy/elementary/src/lib/elm_win.c
diff options
context:
space:
mode:
authorChunEon Park <hermet@hermet.pe.kr>2014-02-06 00:16:59 +0900
committerChunEon Park <hermet@hermet.pe.kr>2014-02-06 00:16:59 +0900
commitc2489943a70abf345bef4ea4092dfc4ba39cc235 (patch)
treed5a66372227df78002beec512179285b72759707 /legacy/elementary/src/lib/elm_win.c
parententry: Added @since 1.9 for newly added API elm_entry_select_region_set. (diff)
downloadefl-c2489943a70abf345bef4ea4092dfc4ba39cc235.tar.gz
win - +null object checking.
it allows previous highlighted object is empty. So it should be checked before accessing.
Diffstat (limited to 'legacy/elementary/src/lib/elm_win.c')
-rw-r--r--legacy/elementary/src/lib/elm_win.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/legacy/elementary/src/lib/elm_win.c b/legacy/elementary/src/lib/elm_win.c
index de10924e68..2f02652bce 100644
--- a/legacy/elementary/src/lib/elm_win.c
+++ b/legacy/elementary/src/lib/elm_win.c
@@ -803,7 +803,8 @@ _elm_win_focus_highlight_reconfigure(Elm_Win_Smart_Data *sd)
if ((!target) || (!common_visible) || (sd->focus_highlight.cur.in_theme))
goto the_end;
- focus_style_previous = elm_widget_focus_highlight_style_get(previous);
+ if (previous)
+ focus_style_previous = elm_widget_focus_highlight_style_get(previous);
focus_style_target = elm_widget_focus_highlight_style_get(target);
if (sd->focus_highlight.theme_changed ||