Skip to content

Commit

Permalink
fix small memory issue
Browse files Browse the repository at this point in the history
  • Loading branch information
coco875 committed Jan 5, 2025
1 parent 80c2c5e commit 08abd2c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
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 @@ -58,7 +58,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

0 comments on commit 08abd2c

Please sign in to comment.