backend-rdp: fix memory leak

Free command data after all rects have been updated. This fixes a
rather huge memory leak when using the RDP backend.

Signed-off-by: Stefan Agner <stefan@agner.ch>
dev
Stefan Agner 5 years ago
parent 9eb974aaaf
commit d93c0f7059
  1. 2
      libweston/backend-rdp/rdp.c

@ -360,6 +360,8 @@ rdp_peer_refresh_raw(pixman_region32_t *region, pixman_image_t *image, freerdp_p
}
}
free(SURFACE_BITMAP_DATA(cmd));
marker.frameAction = SURFACECMD_FRAMEACTION_END;
update->SurfaceFrameMarker(peer->context, &marker);
}

Loading…
Cancel
Save