File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ ---
2+ " tauri " : patch:bug
3+ ---
4+
5+ When using the multiwebview mode, properly remove the webview from memory on ` Webview::close ` .
Original file line number Diff line number Diff line change @@ -543,6 +543,10 @@ impl<R: Runtime> AppManager<R> {
543543 }
544544 }
545545
546+ pub ( crate ) fn on_webview_close ( & self , label : & str ) {
547+ self . webview . webviews_lock ( ) . remove ( label) ;
548+ }
549+
546550 pub fn windows ( & self ) -> HashMap < String , Window < R > > {
547551 self . window . windows_lock ( ) . clone ( )
548552 }
Original file line number Diff line number Diff line change @@ -878,7 +878,9 @@ impl<R: Runtime> Webview<R> {
878878 if self . window . webview_window {
879879 self . window . close ( )
880880 } else {
881- self . webview . dispatcher . close ( ) . map_err ( Into :: into)
881+ self . webview . dispatcher . close ( ) ?;
882+ self . manager ( ) . on_webview_close ( self . label ( ) ) ;
883+ Ok ( ( ) )
882884 }
883885 }
884886
You can’t perform that action at this time.
0 commit comments