mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-08-29 02:03:03 +08:00
UI: Fix crash in YoutubeAuth
YoutubeAuth::chat is a raw pointer that is uninitialized. Most of the time it doesn't matter, since the object it points to is created at the application start. However, in case of Wayland (Linux), CEF is not initialized (because it's not supported) and the chat object will never get created. This patch fixes crash on Wayland by initializing `chat` to `nullptr`. Co-authored-by: Roman Podoliaka <roman.podoliaka@gmail.com>
This commit is contained in:
committed by
Ryan Foster
parent
35f79d62c7
commit
08f5a7bd4d
+1
-1
@@ -44,7 +44,7 @@ class YoutubeAuth : public OAuthStreamKey {
|
||||
std::string section;
|
||||
|
||||
#ifdef BROWSER_AVAILABLE
|
||||
YoutubeChatDock *chat;
|
||||
YoutubeChatDock *chat = nullptr;
|
||||
#endif
|
||||
|
||||
virtual bool RetryLogin() override;
|
||||
|
||||
Reference in New Issue
Block a user