Skip to content

Commit e3d83c0

Browse files
committed
CRITICAL: Fix double dispose on LazyLoadBitmap
This is caused by the `using` clause on the stream causing the resultStream to somehow getting double disposed during the event `ImageOnImageOpened` and crashes about 95% of the time during game/region change.
1 parent bbf9729 commit e3d83c0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CollapseLauncher/XAMLs/MainApp/ValueConverters.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -718,7 +718,7 @@ await CacheManager
718718
CancellationToken.None);
719719

720720
resultStream = result.Stream;
721-
using IRandomAccessStream stream = resultStream.AsRandomAccessStream(true);
721+
IRandomAccessStream stream = resultStream.AsRandomAccessStream(true);
722722
image.ImageOpened += ImageOnImageOpened;
723723

724724
await image.SetSourceAsync(stream);

0 commit comments

Comments
 (0)