egl/x11: Fix driver_name acquisition
authorBoyan Ding <boyan.j.ding@gmail.com>
Sat, 8 Aug 2015 09:23:28 +0000 (17:23 +0800)
committerEmil Velikov <emil.l.velikov@gmail.com>
Sat, 8 Aug 2015 12:36:17 +0000 (13:36 +0100)
commit27141f984d6401dc466f0e9b0c5da2a9248045e3
tree32395749a073e4bebb78619d7fd6ef944cea83b0
parenta1adf0b3fe428a4bf690f166c2697d8c7ea2dcb0
egl/x11: Fix driver_name acquisition

We don't need to free driverName string from dri2 reply, on the other
hand, the driver name acquired from loader doesn't need duplication.

Fixes: 45e110bad9d (egl/x11: trust our loader over the xserver for the
drivername)

Reported-by: Timothy Arceri <t_arceri@yahoo.com.au>
Signed-off-by: Boyan Ding <boyan.j.ding@gmail.com>
[Emil Velikov: use brackets for both branches of conditional]
Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
src/egl/drivers/dri2/platform_x11.c