Commit 2809a94
committed
refactor(Storage): Implement IDisposable on Crc32cHashInterceptor to prevent memory leaks
- Implement `IDisposable` on the nested `Crc32cHashInterceptor` class to explicitly unsubscribe from `UploadSessionData` and `ProgressChanged` events on disposal.
- Invoke the interceptor's `Dispose` method during `CustomMediaUpload.Dispose()` to ensure robust cleanup and release resources during upload cancellation or early exit.1 parent cffee35 commit 2809a94
1 file changed
Lines changed: 8 additions & 1 deletion
Lines changed: 8 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
| 59 | + | |
59 | 60 | | |
60 | 61 | | |
61 | 62 | | |
62 | 63 | | |
63 | | - | |
| 64 | + | |
64 | 65 | | |
65 | 66 | | |
66 | 67 | | |
| |||
112 | 113 | | |
113 | 114 | | |
114 | 115 | | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
115 | 122 | | |
116 | 123 | | |
117 | 124 | | |
| |||
0 commit comments