all repos — tint2 @ b2b0119f4da7786a9d0e63317d20481527b9f1d7

fork of the tint2 desktop panel for my custom setup - only minimized windows across all desktops for the taskbar

Fix use after free in DPI computation
o9000 mrovi9000@gmail.com
commit

b2b0119f4da7786a9d0e63317d20481527b9f1d7

parent

41e49ef4e6e7b27ef5fa65415c11bfd3ebd43d92

1 files changed, 1 insertions(+), 1 deletions(-)

jump to
M src/util/server.csrc/util/server.c

@@ -358,7 +358,6 @@ server.monitors[i_monitor].dpi = 96;

for (int j = 0; j < crtc_info->noutput; ++j) { XRROutputInfo *output_info = XRRGetOutputInfo(server.display, res, crtc_info->outputs[j]); server.monitors[i_monitor].names[j] = g_strdup(output_info->name); - XRRFreeOutputInfo(output_info); server.monitors[i_monitor].primary = crtc_info->outputs[j] == primary_output; int dpi = compute_dpi(crtc_info, output_info); if (dpi)

@@ -370,6 +369,7 @@ i,

server.monitors[i_monitor].width, server.monitors[i_monitor].height, server.monitors[i_monitor].dpi); + XRRFreeOutputInfo(output_info); } server.monitors[i_monitor].names[crtc_info->noutput] = NULL; XRRFreeCrtcInfo(crtc_info);