mirror of
https://github.com/yuzu-emu/yuzu-android.git
synced 2025-06-12 22:38:10 -05:00
applets/web: Fix a use-after-free when passing in the URL string
The URL string was being deleted before being used, leading to a use-after-free occurring when it is used afterwards. Fix this by taking the string by const ref to extend its lifetime, ensuring it doesn't get deleted before use.
This commit is contained in:
@ -159,7 +159,7 @@ public slots:
|
||||
void SoftwareKeyboardExit();
|
||||
void ErrorDisplayDisplayError(QString error_code, QString error_text);
|
||||
void ProfileSelectorSelectProfile();
|
||||
void WebBrowserOpenWebPage(std::string_view main_url, std::string_view additional_args,
|
||||
void WebBrowserOpenWebPage(const std::string& main_url, const std::string& additional_args,
|
||||
bool is_local);
|
||||
void OnAppFocusStateChanged(Qt::ApplicationState state);
|
||||
|
||||
|
Reference in New Issue
Block a user