compositor-drm: Don't leak output->name
This commit is contained in:
@@ -815,6 +815,7 @@ drm_output_destroy(struct weston_output *output_base)
|
|||||||
weston_output_destroy(&output->base);
|
weston_output_destroy(&output->base);
|
||||||
wl_list_remove(&output->base.link);
|
wl_list_remove(&output->base.link);
|
||||||
|
|
||||||
|
free(output->name);
|
||||||
free(output);
|
free(output);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1456,6 +1457,7 @@ err_free:
|
|||||||
drmModeFreeCrtc(output->original_crtc);
|
drmModeFreeCrtc(output->original_crtc);
|
||||||
ec->crtc_allocator &= ~(1 << output->crtc_id);
|
ec->crtc_allocator &= ~(1 << output->crtc_id);
|
||||||
ec->connector_allocator &= ~(1 << output->connector_id);
|
ec->connector_allocator &= ~(1 << output->connector_id);
|
||||||
|
free(output->name);
|
||||||
free(output);
|
free(output);
|
||||||
|
|
||||||
return -1;
|
return -1;
|
||||||
|
|||||||
Reference in New Issue
Block a user