summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@osg.samsung.com>2016-09-15 15:10:42 -0400
committerMike Blumenkrantz <zmike@osg.samsung.com>2016-09-15 15:10:42 -0400
commiteea3bdfacf0346916d62233034615b745f23cbe1 (patch)
tree6ff0e63dab7721d966e01d636733b83c74a6dd30
parentca7bc28286641ca2114b5c2e7d98a5a25be5359b (diff)
downloadenlightenment-eea3bdfacf0346916d62233034615b745f23cbe1.tar.gz
handle e_comp deref during e_dnd shutdown to avoid crash
-rw-r--r--src/bin/e_dnd.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/bin/e_dnd.c b/src/bin/e_dnd.c
index 1e8578a705..629699606a 100644
--- a/src/bin/e_dnd.c
+++ b/src/bin/e_dnd.c
@@ -733,7 +733,9 @@ _e_drag_win_get(const E_Drop_Handler *h, int xdnd)
case E_CLIENT_TYPE:
case E_ZONE_TYPE:
default:
- hwin = e_comp->ee_win;
+ /* protect against crashes during shutdown */
+ if (e_comp)
+ hwin = e_comp->ee_win;
break;
}
}