Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
yushulx committed Dec 26, 2024
1 parent 615a548 commit d7e0909
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
Binary file modified litecam/dist/lib/macos/liblitecam.dylib
Binary file not shown.
5 changes: 5 additions & 0 deletions litecam/src/CameraPreviewMacOS.mm
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,11 @@ - (BOOL)windowShouldClose:(id)sender {
: width(width), height(height), title(title), nsWindow(nullptr), contentView(nullptr) {}

CameraWindow::~CameraWindow() {
if (contentView) {
CameraContentView *cv = (__bridge CameraContentView *)contentView;
[cv removeFromSuperview];
}

if (nsWindow) {
NSWindow *window = (__bridge NSWindow *)nsWindow;
[window close];
Expand Down

0 comments on commit d7e0909

Please sign in to comment.