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:
parent
7eea82d3d7
commit
1303c626b1
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user