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()")
Due to an influx of spam, we have had to impose restrictions on new accounts. Please see this wiki page for instructions on how to get full permissions. Sorry for the inconvenience.
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()")