aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2021-05-17 15:54:07 +0200
committerdec05eba <dec05eba@protonmail.com>2021-05-17 15:54:07 +0200
commitfa0c57f3258f4998dd4b2f441656c0c8a892139b (patch)
tree806afd2cd0ce660e801aef513d720f2389ec1099 /src
parent596a6b9edddfd79af9877695974c669d18730ed3 (diff)
app
Diffstat (limited to 'src')
-rw-r--r--src/QuickMedia.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/QuickMedia.cpp b/src/QuickMedia.cpp
index cf2c0a6..14ddba1 100644
--- a/src/QuickMedia.cpp
+++ b/src/QuickMedia.cpp
@@ -124,8 +124,9 @@ static void for_each_active_monitor_output(Display *display, std::function<void(
const XRRModeInfo *mode_info = get_mode_info(screen_res, crt_info->mode);
if(mode_info)
callback_func(crt_info, mode_info);
- XRRFreeCrtcInfo(crt_info);
}
+ if(crt_info)
+ XRRFreeCrtcInfo(crt_info);
}
if(out_info)
XRRFreeOutputInfo(out_info);