Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix small memory issue #784

Merged
merged 3 commits into from
Jan 20, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/debug/CrashHandler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -411,8 +411,8 @@ extern "C" LONG WINAPI seh_filter(PEXCEPTION_POINTERS ex) {
CrashHandler::CrashHandler() {
mOutBuffer = new char[gMaxBufferSize];
#if defined(__linux__) && !defined(__ANDROID__)
struct sigaction action;
struct sigaction shutdownAction;
struct sigaction action = { 0 };
struct sigaction shutdownAction = { 0 };

action.sa_flags = SA_SIGINFO;
action.sa_sigaction = ErrorHandler;
Expand Down
2 changes: 1 addition & 1 deletion src/window/Window.h
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ class Window {

private:
std::shared_ptr<Gui> mGui;
int32_t mLastScancode;
int32_t mLastScancode = -1;
WindowBackend mWindowBackend;
std::shared_ptr<std::vector<WindowBackend>> mAvailableWindowBackends;
// Hold a reference to Config because Window has a Save function called on Context destructor, where the singleton
Expand Down
Loading