radeong: fix leaks
This commit is contained in:
@@ -250,6 +250,7 @@ static void radeon_r300_winsys_cs_destroy(struct r300_winsys_cs *rcs)
|
||||
{
|
||||
struct radeon_libdrm_cs *cs = radeon_libdrm_cs(rcs);
|
||||
radeon_cs_destroy(cs->cs);
|
||||
FREE(cs);
|
||||
}
|
||||
|
||||
static void radeon_winsys_destroy(struct r300_winsys_screen *rws)
|
||||
@@ -261,6 +262,8 @@ static void radeon_winsys_destroy(struct r300_winsys_screen *rws)
|
||||
|
||||
radeon_bo_manager_gem_dtor(ws->bom);
|
||||
radeon_cs_manager_gem_dtor(ws->csm);
|
||||
|
||||
FREE(rws);
|
||||
}
|
||||
|
||||
boolean radeon_setup_winsys(int fd, struct radeon_libdrm_winsys* ws)
|
||||
|
||||
Reference in New Issue
Block a user