We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1366720 commit 224ae14Copy full SHA for 224ae14
1 file changed
src/os/posix/x11.rs
@@ -160,6 +160,8 @@ impl DisplayInfo {
160
conv_depth = pix_fmt.bits_per_pixel;
161
}
162
163
+
164
+ (self.lib.XFree)(formats as _);
165
166
167
if conv_depth != 32 {
@@ -237,6 +239,7 @@ impl DisplayInfo {
237
239
impl Drop for DisplayInfo {
238
240
fn drop(&mut self) {
241
unsafe {
242
+ (self.lib.XFreeGC)(self.display, self.gc);
243
(self.lib.XCloseDisplay)(self.display);
244
245
0 commit comments