summaryrefslogtreecommitdiff
path: root/src/lib/ecore_drm/ecore_drm_device.c
diff options
context:
space:
mode:
authorMarcel Hollerbach <marcel-hollerbach@t-online.de>2016-01-11 22:53:18 +0100
committerMarcel Hollerbach <marcel-hollerbach@t-online.de>2016-01-13 18:51:49 +0100
commit0a2f066c2d299edef7b58cc663c7bd22616b344d (patch)
tree867a693398c173ba628f8e4d84d1e683ea000d2b /src/lib/ecore_drm/ecore_drm_device.c
parent093846aaea3da28f2227f8c300ee807edd5c1ff4 (diff)
ecore_drm: close all devices in shutdown
Diffstat (limited to 'src/lib/ecore_drm/ecore_drm_device.c')
-rw-r--r--src/lib/ecore_drm/ecore_drm_device.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/lib/ecore_drm/ecore_drm_device.c b/src/lib/ecore_drm/ecore_drm_device.c
index 1b7fc8b7b0..a91af954d6 100644
--- a/src/lib/ecore_drm/ecore_drm_device.c
+++ b/src/lib/ecore_drm/ecore_drm_device.c
@@ -277,12 +277,18 @@ ecore_drm_device_free(Ecore_Drm_Device *dev)
277 if (dev->dumb[i]) ecore_drm_fb_destroy(dev->dumb[i]); 277 if (dev->dumb[i]) ecore_drm_fb_destroy(dev->dumb[i]);
278 dev->dumb[i] = NULL; 278 dev->dumb[i] = NULL;
279 } 279 }
280 280 /* destroy all sprites*/
281 ecore_drm_sprites_destroy(dev);
282 /* clear inputs */
281 ecore_drm_inputs_destroy(dev); 283 ecore_drm_inputs_destroy(dev);
282
283 /* free outputs */ 284 /* free outputs */
284 EINA_LIST_FREE(dev->outputs, output) 285 EINA_LIST_FREE(dev->outputs, output)
285 ecore_drm_output_free(output); 286 ecore_drm_output_free(output);
287 /* disconnect launcher */
288 ecore_drm_launcher_disconnect(dev);
289 /* close myself */
290 ecore_drm_device_close(dev);
291
286 292
287 /* free crtcs */ 293 /* free crtcs */
288 if (dev->crtcs) free(dev->crtcs); 294 if (dev->crtcs) free(dev->crtcs);