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.
This commit is contained in:
Jonas Ådahl 2017-07-07 17:59:20 +08:00
parent 7eea82d3d7
commit 1303c626b1

View File

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