Remove frame double-free on navigate error

The explicit deinit isn't needed as here's already an errdefer in play.
This commit is contained in:
Karl Seguin
2026-03-14 14:02:58 +08:00
parent be8ba53263
commit 1352839472

View File

@@ -1091,7 +1091,6 @@ pub fn iframeAddedCallback(self: *Page, iframe: *IFrame) !void {
log.warn(.page, "iframe navigate failure", .{ .url = url, .err = err }); log.warn(.page, "iframe navigate failure", .{ .url = url, .err = err });
self._pending_loads -= 1; self._pending_loads -= 1;
iframe._window = null; iframe._window = null;
page_frame.deinit(true);
return error.IFrameLoadError; return error.IFrameLoadError;
}; };