[cogl] cogl-winsys-egl-kms: Make sure to close our connection to DRM at shutdown



commit dcdba60e95ae7be1b0253d28686d1562c35374ba
Author: Jasper St. Pierre <jstpierre mecheye net>
Date:   Wed Mar 12 12:09:01 2014 -0400

    cogl-winsys-egl-kms: Make sure to close our connection to DRM at shutdown
    
    Reviewed-by: Neil Roberts <neil linux intel com>

 cogl/winsys/cogl-winsys-egl-kms.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/cogl/winsys/cogl-winsys-egl-kms.c b/cogl/winsys/cogl-winsys-egl-kms.c
index 43106e2..acd0d0c 100644
--- a/cogl/winsys/cogl-winsys-egl-kms.c
+++ b/cogl/winsys/cogl-winsys-egl-kms.c
@@ -122,6 +122,9 @@ _cogl_winsys_renderer_disconnect (CoglRenderer *renderer)
 
   eglTerminate (egl_renderer->edpy);
 
+  if (kms_renderer->opened_fd >= 0)
+    close (kms_renderer->opened_fd);
+
   g_slice_free (CoglRendererKMS, kms_renderer);
   g_slice_free (CoglRendererEGL, egl_renderer);
 }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]