gpu: Set variable to NULL after freeing

Saw this while reviewing code.
This commit is contained in:
Benjamin Otte 2024-03-15 19:37:51 +01:00
parent 60ddf7c421
commit de2b10e46c

View File

@ -70,7 +70,7 @@ gsk_gl_frame_cleanup (GskGpuFrame *frame)
if (self->sync)
{
glClientWaitSync (self->sync, 0, -1);
glDeleteSync (self->sync);
g_clear_pointer (&self->sync, glDeleteSync);
}
self->next_texture_slot = 0;