diff --git a/Userland/Applications/Spreadsheet/Spreadsheet.h b/Userland/Applications/Spreadsheet/Spreadsheet.h index 207571e3443..20f0f36a017 100644 --- a/Userland/Applications/Spreadsheet/Spreadsheet.h +++ b/Userland/Applications/Spreadsheet/Spreadsheet.h @@ -155,7 +155,7 @@ private: HashTable m_selected_cells; Workbook& m_workbook; - mutable SheetGlobalObject* m_global_object; + mutable JS::GCPtr m_global_object; NonnullOwnPtr m_interpreter; diff --git a/Userland/Applications/Spreadsheet/Workbook.h b/Userland/Applications/Spreadsheet/Workbook.h index acd9e516f77..3e87d8d1641 100644 --- a/Userland/Applications/Spreadsheet/Workbook.h +++ b/Userland/Applications/Spreadsheet/Workbook.h @@ -46,7 +46,7 @@ private: NonnullRefPtr m_vm; NonnullOwnPtr m_interpreter; JS::VM::InterpreterExecutionScope m_interpreter_scope; - WorkbookObject* m_workbook_object { nullptr }; + JS::GCPtr m_workbook_object; JS::ExecutionContext m_main_execution_context; GUI::Window& m_parent_window;