ecore-drm: Fix improper shutdown for error cases in ecore_drm_init
authorChris Michael <cp.michael@samsung.com>
Thu, 24 Jul 2014 15:33:21 +0000 (11:33 -0400)
committerChris Michael <cp.michael@samsung.com>
Thu, 24 Jul 2014 15:33:21 +0000 (11:33 -0400)
commit0001b6578360d50f864a60e22a4ee7ebbf2f22a8
treed0033dfff2553f3295e3701341d18dda7103e0f0
parentab38ffd6edf2f61917bd90ecbc82c59df12904a0
ecore-drm: Fix improper shutdown for error cases in ecore_drm_init

If an error occurs during ecore_drm_init, we need to cleanup things in
the proper order. This fixes the case where ecore_event_shutdown and
ecore_shutdown May Not have been called (in previous revision) due to
the error conditions being out of order.

Signed-off-by: Chris Michael <cp.michael@samsung.com>
src/lib/ecore_drm/ecore_drm.c