aboutsummaryrefslogtreecommitdiffstats
path: root/android/protocol/core-commands-proxy.c
diff options
context:
space:
mode:
Diffstat (limited to 'android/protocol/core-commands-proxy.c')
-rw-r--r--android/protocol/core-commands-proxy.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/android/protocol/core-commands-proxy.c b/android/protocol/core-commands-proxy.c
index 6bd3d4e..1bd0937 100644
--- a/android/protocol/core-commands-proxy.c
+++ b/android/protocol/core-commands-proxy.c
@@ -127,10 +127,12 @@ _coreCmdProxy_destroy(void)
if (_coreCmdProxy.sync_writer != NULL) {
syncsocket_close(_coreCmdProxy.sync_writer);
syncsocket_free(_coreCmdProxy.sync_writer);
+ _coreCmdProxy.sync_writer = NULL;
}
if (_coreCmdProxy.sync_reader != NULL) {
syncsocket_close(_coreCmdProxy.sync_reader);
syncsocket_free(_coreCmdProxy.sync_reader);
+ _coreCmdProxy.sync_reader = NULL;
}
if (_coreCmdProxy.core_connection != NULL) {
core_connection_close(_coreCmdProxy.core_connection);