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

Reviewed-by: Neil Roberts <neil@linux.intel.com>
(cherry picked from commit dcdba60e95ae7be1b0253d28686d1562c35374ba)
This commit is contained in:
Jasper St. Pierre 2014-03-12 12:09:01 -04:00 committed by Neil Roberts
parent 0d91085193
commit e7011f1910

View File

@ -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);
}