We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1475664 commit 178996eCopy full SHA for 178996e
1.9.camera/camera.cpp
@@ -22,10 +22,11 @@ void CheckIfProcessTrusted() {
22
sizeof(keys) / sizeof(keys[0]),
23
&kCFTypeDictionaryKeyCallBacks,
24
&kCFTypeDictionaryValueCallBacks);
25
- if (!AXIsProcessTrustedWithOptions(options)) {
+ const bool trusted = AXIsProcessTrustedWithOptions(options);
26
+ CFRelease(options);
27
+ if (!trusted) {
28
throw std::runtime_error("not a trusted trusted accessibility client");
29
}
- CFRelease(options);
30
#endif
31
32
0 commit comments