Fix egl buffer (de)initialization

When I wrote this initially, I fucked up.