fix gdi_resize: set primary_buffer to NULL to avoid use after free
This commit is contained in:
parent
c060fb07a2
commit
1f2f9dfbdc
@ -981,6 +981,7 @@ void gdi_resize(rdpGdi* gdi, int width, int height)
|
||||
gdi->width = width;
|
||||
gdi->height = height;
|
||||
gdi_bitmap_free_ex(gdi->primary);
|
||||
gdi->primary_buffer = NULL;
|
||||
gdi_init_primary(gdi);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user