Commit 2cbfe28
fix: memory leak in AppSyncWebSocketClient (#41)
Description of changes:
WebSocketTransport holds a strong reference to AppSyncWebSocketClient, and vice versa. This causes a retain cycle that can be solved by making AppSyncWebSocketClient's reference weak.
Testing:
Verified solution via memory graph debugger.
Co-authored-by: Anthony Guella <anthkgue@audible.com>1 parent fae511f commit 2cbfe28
File tree
1 file changed
+1
-1
lines changed- Sources/AWSAppSyncApolloExtensions/Websocket
1 file changed
+1
-1
lines changedLines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| |||
0 commit comments