video: fbdev: fix freeing fake display
We currently leak the fake display that is created for every fbdev video device. Fix this by simply freeing this device during destruction. Signed-off-by: David Herrmann <dh.herrmann@googlemail.com>
This commit is contained in:
parent
4d803f54ab
commit
a67df3a069
@ -428,7 +428,14 @@ err_free:
|
||||
|
||||
static void video_destroy(struct uterm_video *video)
|
||||
{
|
||||
struct uterm_display *disp;
|
||||
|
||||
log_info("free device %p", video);
|
||||
disp = video->displays;
|
||||
video->displays = disp->next;
|
||||
close(disp->fbdev.fd);
|
||||
free(disp->fbdev.node);
|
||||
uterm_display_unref(disp);
|
||||
}
|
||||
|
||||
static void video_sleep(struct uterm_video *video)
|
||||
|
Loading…
x
Reference in New Issue
Block a user