From: Somin Kim Date: Tue, 26 Sep 2017 06:29:58 +0000 (+0900) Subject: [testsuite] assign null after destroy handle X-Git-Tag: submit/tizen/20170926.083539^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7cdaca9a5731c6abec2dba581d916daee9109d40;p=platform%2Fcore%2Fapi%2Fcontext.git [testsuite] assign null after destroy handle Change-Id: I2571fc0bde3391e2b24382aa57e834d358e4fccd Signed-off-by: Somin Kim --- diff --git a/testsuite/src/default/DefaultTest.cpp b/testsuite/src/default/DefaultTest.cpp index da82829..3a7d859 100644 --- a/testsuite/src/default/DefaultTest.cpp +++ b/testsuite/src/default/DefaultTest.cpp @@ -51,6 +51,9 @@ bool __verify_context_history() context_history_list_destroy(queryResult); context_history_filter_destroy(filter); context_history_destroy(history); + queryResult = NULL; + filter = NULL; + history = NULL; ASSERT(error == CONTEXT_HISTORY_ERROR_NONE || error == CONTEXT_HISTORY_ERROR_NO_DATA);