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:
David Herrmann 2012-07-21 21:01:22 +02:00
parent 4d803f54ab
commit a67df3a069

View File

@ -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)