[mutter] renderer-native: Fix compilation when EGLDevice renderer not enabled



commit 1303c626b1921ec767538f79411cf95e4022245f
Author: Jonas Ådahl <jadahl gmail com>
Date:   Fri Jul 7 17:59:20 2017 +0800

    renderer-native: Fix compilation when EGLDevice renderer not enabled
    
    When --enable-egl-device is not passed to ./configure, the
    egl_device_error will not be declared; don't try to free it when its not
    declared.

 src/backends/native/meta-renderer-native.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/backends/native/meta-renderer-native.c b/src/backends/native/meta-renderer-native.c
index 93d76cd..05ed09e 100644
--- a/src/backends/native/meta-renderer-native.c
+++ b/src/backends/native/meta-renderer-native.c
@@ -2082,7 +2082,9 @@ meta_renderer_native_initable_init (GInitable     *initable,
 
   if (init_gbm (renderer_native, &gbm_error))
     {
+#ifdef HAVE_EGL_DEVICE
       g_error_free (egl_device_error);
+#endif
       return TRUE;
     }
 


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