Skip to content

Commit

Permalink
Fix share annotation image deferred menu memory leak
Browse files Browse the repository at this point in the history
  • Loading branch information
mvasilak committed Nov 8, 2023
1 parent 77e58e3 commit 3440c9b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Zotero/Scenes/Detail/PDF/PDFCoordinator.swift
Original file line number Diff line number Diff line change
Expand Up @@ -345,8 +345,8 @@ extension PDFCoordinator: PdfAnnotationsCoordinatorDelegate {
scale: CGFloat,
title: String
) -> UIDeferredMenuElement {
UIDeferredMenuElement { [weak self] elementProvider in
guard let self else {
UIDeferredMenuElement { [weak self, weak boundingBoxConverter] elementProvider in
guard let self, let boundingBoxConverter else {
elementProvider([])
return
}
Expand Down

0 comments on commit 3440c9b

Please sign in to comment.