Display (Linux): fix memleaks

This commit is contained in:
李通洲
2023-08-26 05:52:06 -04:00
parent 0534882f4e
commit 2f14d7742e
+2
View File
@@ -220,6 +220,8 @@ static bool xrandrHandleOutput(XrandrData* data, RROutput output, FFstrbuf* name
ffEdidGetName(edidData, name);
}
}
if (edidData)
data->ffXFree(edidData);
}
bool res = xrandrHandleCrtc(data, outputInfo->crtc, name, primary);