Skip to content

Commit

Permalink
macosx: Fix crash with hero view badly using just instantiated object…
Browse files Browse the repository at this point in the history
…'s property

Signed-off-by: Claudio Cambra <[email protected]>
  • Loading branch information
claucambra authored and fkuehne committed Oct 8, 2024
1 parent 579b6c7 commit 72b7143
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion modules/gui/macosx/library/VLCLibraryHeroView.m
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,9 @@ - (void)itemUpdated:(NSNotification *)notification
return;
}

VLCLibraryRepresentedItem * const item = [[VLCLibraryRepresentedItem alloc] initWithItem:mediaItem parentType:item.parentType];
VLCLibraryRepresentedItem * const item =
[[VLCLibraryRepresentedItem alloc] initWithItem:mediaItem
parentType:self.representedItem.parentType];
self.representedItem = item;
}

Expand Down

0 comments on commit 72b7143

Please sign in to comment.