ecore_evas_wayland: Re-kill double disconnect bug on fallback

Jpeg caught this one a while back and it got re-introduced recently.
This commit is contained in:
Derek Foreman 2016-11-09 16:33:49 -06:00
parent 21617f83c2
commit 9ad35a6fa2
1 changed files with 4 additions and 1 deletions

View File

@ -2167,11 +2167,14 @@ _ecore_evas_wl_common_new_internal(const char *disp_name, unsigned int parent, i
return ee;
eng_err:
/* ecore_evas_free() will call ecore_wl2_display_disconnect()
* and free(ee) */
ecore_evas_free(ee);
ee = NULL;
w_err:
free(ee);
ee_err:
ecore_wl2_display_disconnect(ewd);
if (ee) ecore_wl2_display_disconnect(ewd);
conn_err:
ecore_wl2_shutdown();
return NULL;