GUAC-656: Free buffer last - surface needs to send dispose.
This commit is contained in:
parent
25d8b47bd3
commit
5f0250fb1f
@ -154,14 +154,14 @@ void guac_rdp_bitmap_free(rdpContext* context, rdpBitmap* bitmap) {
|
|||||||
guac_layer* buffer = ((guac_rdp_bitmap*) bitmap)->buffer;
|
guac_layer* buffer = ((guac_rdp_bitmap*) bitmap)->buffer;
|
||||||
guac_common_surface* surface = ((guac_rdp_bitmap*) bitmap)->surface;
|
guac_common_surface* surface = ((guac_rdp_bitmap*) bitmap)->surface;
|
||||||
|
|
||||||
/* If cached, free buffer */
|
|
||||||
if (buffer != NULL)
|
|
||||||
guac_client_free_buffer(client, buffer);
|
|
||||||
|
|
||||||
/* If cached, free surface */
|
/* If cached, free surface */
|
||||||
if (surface != NULL)
|
if (surface != NULL)
|
||||||
guac_common_surface_free(surface);
|
guac_common_surface_free(surface);
|
||||||
|
|
||||||
|
/* If cached, free buffer */
|
||||||
|
if (buffer != NULL)
|
||||||
|
guac_client_free_buffer(client, buffer);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void guac_rdp_bitmap_setsurface(rdpContext* context, rdpBitmap* bitmap, BOOL primary) {
|
void guac_rdp_bitmap_setsurface(rdpContext* context, rdpBitmap* bitmap, BOOL primary) {
|
||||||
|
Loading…
Reference in New Issue
Block a user