diff --git a/Userland/Libraries/LibPDF/Document.h b/Userland/Libraries/LibPDF/Document.h index 40675bccc7..39fb571fad 100644 --- a/Userland/Libraries/LibPDF/Document.h +++ b/Userland/Libraries/LibPDF/Document.h @@ -36,8 +36,9 @@ struct Destination { Vector> parameters; }; -struct OutlineItem final : public RefCounted { - RefPtr parent; +struct OutlineItem final : public RefCounted + , public Weakable { + WeakPtr parent; Vector> children; DeprecatedString title; // Already converted to UTF-8. i32 count { 0 };