Skip to content

Commit 2f14d77

Browse files
committed
Display (Linux): fix memleaks
1 parent 0534882 commit 2f14d77

File tree

1 file changed

+2
-0
lines changed
  • src/detection/displayserver/linux

1 file changed

+2
-0
lines changed

src/detection/displayserver/linux/xlib.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,8 @@ static bool xrandrHandleOutput(XrandrData* data, RROutput output, FFstrbuf* name
220220
ffEdidGetName(edidData, name);
221221
}
222222
}
223+
if (edidData)
224+
data->ffXFree(edidData);
223225
}
224226
bool res = xrandrHandleCrtc(data, outputInfo->crtc, name, primary);
225227

0 commit comments

Comments
 (0)