aboutsummaryrefslogtreecommitdiff
path: root/www/qt6-webengine/files/patch-src_3rdparty_chromium_components_services_screen__ai_screen__ai__library__wrapper.cc
blob: 60d321baf24cda96efdcfa1c33ae41e83e0eb9a9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
--- src/3rdparty/chromium/components/services/screen_ai/screen_ai_library_wrapper.cc.orig	2023-09-13 12:11:42 UTC
+++ src/3rdparty/chromium/components/services/screen_ai/screen_ai_library_wrapper.cc
@@ -187,7 +187,7 @@ ScreenAILibraryWrapper::PerformOcr(const SkBitmap& ima
 
   // TODO(crbug.com/1443341): Remove this after fixing the crash issue on Linux
   // official.
-#if BUILDFLAG(IS_LINUX)
+#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD)
   free_library_allocated_char_array_(library_buffer.release());
 #endif
 
@@ -219,7 +219,7 @@ ScreenAILibraryWrapper::ExtractLayout(const SkBitmap& 
 
   // TODO(crbug.com/1443341): Remove this after fixing the crash issue on Linux
   // official.
-#if BUILDFLAG(IS_LINUX)
+#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD)
   free_library_allocated_char_array_(library_buffer.release());
 #endif
 
@@ -253,7 +253,7 @@ absl::optional<std::vector<int32_t>> ScreenAILibraryWr
 
   // TODO(crbug.com/1443341): Remove this after fixing the crash issue on Linux
   // official.
-#if BUILDFLAG(IS_LINUX)
+#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD)
   free_library_allocated_int32_array_(library_buffer.release());
 #endif