diff options
Diffstat (limited to 'Userland/Libraries/LibWeb/HTML/Path2D.cpp')
-rw-r--r-- | Userland/Libraries/LibWeb/HTML/Path2D.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibWeb/HTML/Path2D.cpp b/Userland/Libraries/LibWeb/HTML/Path2D.cpp index 52ca1daa5c..58d5383156 100644 --- a/Userland/Libraries/LibWeb/HTML/Path2D.cpp +++ b/Userland/Libraries/LibWeb/HTML/Path2D.cpp @@ -14,7 +14,7 @@ namespace Web::HTML { JS::NonnullGCPtr<Path2D> Path2D::construct_impl(JS::Realm& realm, Optional<Variant<JS::Handle<Path2D>, DeprecatedString>> const& path) { - return *realm.heap().allocate<Path2D>(realm, realm, path); + return realm.heap().allocate<Path2D>(realm, realm, path); } // https://html.spec.whatwg.org/multipage/canvas.html#dom-path2d |