summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYoungHun Kim <yh8004.kim@samsung.com>2020-09-11 15:41:59 +0900
committerYoungHun Kim <yh8004.kim@samsung.com>2020-09-14 09:43:23 +0900
commite8bbbd89b5b1e355a6e096e54bd9fd174a049a28 (patch)
treedfd535dbc27ed5a8934f75b36f4af23c2833c75d
parent31ae42a3b006c5d60a7e1723ef53bc77b55f7508 (diff)
downloadmurphy-tizen_5.5.tar.gz
murphy-tizen_5.5.tar.bz2
murphy-tizen_5.5.zip
- Added setting null missing after mrp_mainloop_destroy Change-Id: I6ac05b3caf15e1366aa5932ffa0382ca514e03d1
-rw-r--r--src/core/context.c1
-rw-r--r--src/plugins/resource-native/resource-client.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/src/core/context.c b/src/core/context.c
index fd01cce..a0a28b5 100644
--- a/src/core/context.c
+++ b/src/core/context.c
@@ -62,6 +62,7 @@ void mrp_context_destroy(mrp_context_t *c)
if (c != NULL) {
console_cleanup(c);
mrp_mainloop_destroy(c->ml);
+ c->ml = NULL;
mrp_free(c);
}
diff --git a/src/plugins/resource-native/resource-client.c b/src/plugins/resource-native/resource-client.c
index 146240b..a920eb3 100644
--- a/src/plugins/resource-native/resource-client.c
+++ b/src/plugins/resource-native/resource-client.c
@@ -1774,6 +1774,7 @@ int main(int argc, char **argv)
mrp_transport_destroy(client->transp);
mrp_mainloop_destroy(client->ml);
+ client->ml = NULL;
mrp_free((void *)client->name);
resource_def_array_free(client->resources);
str_array_free(client->class_names);