We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7adef4b commit f8a2f8aCopy full SHA for f8a2f8a
dash-spv-ffi/tests/unit/test_client_lifecycle.rs
@@ -142,8 +142,15 @@ mod tests {
142
assert!(!client.is_null());
143
144
// Do some operations
145
- let _ = dash_spv_ffi_client_get_sync_progress(client);
146
- let _ = dash_spv_ffi_client_get_stats(client);
+ let progress = dash_spv_ffi_client_get_sync_progress(client);
+ let stats = dash_spv_ffi_client_get_stats(client);
147
+
148
+ if !progress.is_null() {
149
+ dash_spv_ffi_sync_progress_destroy(progress);
150
+ }
151
+ if !stats.is_null() {
152
+ dash_spv_ffi_spv_stats_destroy(stats);
153
154
155
dash_spv_ffi_client_destroy(client);
156
dash_spv_ffi_config_destroy(config);
0 commit comments