summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 267b350)
raw | patch | inline | side by side (parent: 267b350)
author | Tomi Valkeinen <tomi.valkeinen@ti.com> | |
Thu, 26 Nov 2015 09:32:27 +0000 (11:32 +0200) | ||
committer | Tomi Valkeinen <tomi.valkeinen@ti.com> | |
Thu, 26 Nov 2015 09:32:27 +0000 (11:32 +0200) |
libkms++/dumbframebuffer.cpp | patch | blob | history |
index ec0fefb85f68eaad5f16e43b3ab0817d785bb6e8..cc97dde6a07356380b4b13731ed799054706ea64 100644 (file)
FramebufferPlane& plane = m_planes[i];
/* unmap buffer */
- munmap(plane.map, plane.size);
+ if (plane.map)
+ munmap(plane.map, plane.size);
/* delete dumb buffer */
struct drm_mode_destroy_dumb dreq = drm_mode_destroy_dumb();