Skip to content

Commit

Permalink
fix: crash on close
Browse files Browse the repository at this point in the history
  • Loading branch information
f0e committed Dec 4, 2024
1 parent 991bdf9 commit 9ef947e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion src/gui/gui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ void gui::event_loop() {
}

void gui::run() {
system = os::make_system();
auto system = os::make_system(); // note: storing this and not calling release() causes skia crash

renderer::init_fonts();

Expand Down
1 change: 0 additions & 1 deletion src/gui/gui.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#pragma once

namespace gui {
inline os::SystemRef system;
inline os::WindowRef window;
inline os::EventQueue* event_queue;

Expand Down

0 comments on commit 9ef947e

Please sign in to comment.