window: destroy the 2nd shm buffer, if both released