fix gdi_resize: set primary_buffer to NULL to avoid use after free

This commit is contained in:
Benoît LeBlanc 2014-08-06 17:02:21 -04:00
parent c060fb07a2
commit 1f2f9dfbdc

View File

@ -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);
}
}