egl: free device on return
Now that we no longer add the device in this function, exiting it means we are done with the device. So let's free it, to avoid a leak.
Fixes: 3a9e1014 ("egl: Rename _eglAddDevice() to _eglFindDevice()")
Now that we no longer add the device in this function, exiting it means we are done with the device. So let's free it, to avoid a leak.
Fixes: 3a9e1014 ("egl: Rename _eglAddDevice() to _eglFindDevice()")