summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGustavo Sverzut Barbieri <barbieri@gmail.com>2013-01-11 04:21:02 +0000
committerGustavo Sverzut Barbieri <barbieri@gmail.com>2013-01-11 04:21:02 +0000
commit7b8f400381fa784db4f9051c1f6f53cae6dbc475 (patch)
tree85ed0f54b6fa39d4e21d48cdbd22a6185f8c8527 /src
parentf8fde3d5606713f4625b9d18e9ce50de86b2166b (diff)
efl/ecore_evas: avoid infinite loop building ews.
ews will load another engine inside it's constructor. If no module is found, then it will loop back to itself. avoid that. SVN revision: 82606
Diffstat (limited to 'src')
-rw-r--r--src/lib/ecore_evas/ecore_evas_ews.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lib/ecore_evas/ecore_evas_ews.c b/src/lib/ecore_evas/ecore_evas_ews.c
index 37f4456..4b80c30 100644
--- a/src/lib/ecore_evas/ecore_evas_ews.c
+++ b/src/lib/ecore_evas/ecore_evas_ews.c
@@ -1096,10 +1096,14 @@ ecore_evas_ews_new(int x, int y, int w, int h)
1096 Evas_Engine_Info_Buffer *einfo; 1096 Evas_Engine_Info_Buffer *einfo;
1097 Ecore_Evas *ee; 1097 Ecore_Evas *ee;
1098 int rmethod; 1098 int rmethod;
1099 static Eina_Bool creating = EINA_FALSE;
1099 1100
1100 if (_ecore_evas_ews_init() < 1) return NULL; 1101 if (_ecore_evas_ews_init() < 1) return NULL;
1101 1102
1103 if (creating) return NULL; /* avoid recursive ecore_evas_new() with ews */
1104 creating = EINA_TRUE;
1102 if (!_ews_ee) _ews_ee = _ecore_evas_ews_ee_new(); 1105 if (!_ews_ee) _ews_ee = _ecore_evas_ews_ee_new();
1106 creating = EINA_FALSE;
1103 if (!_ews_ee) 1107 if (!_ews_ee)
1104 { 1108 {
1105 ERR("Could not create EWS backing store"); 1109 ERR("Could not create EWS backing store");