C++ move semantics for classes (especially for Framebuffers)? Proper error checks and use of exceptions Free drmModeConnectorPtr (and similar for other drm objects) after use, instead of storing it.