[ITC][media-content][Non-ACR] set handle to NULL after destroy 93/274493/1
authorbackto.kim <backto.kim@samsung.com>
Fri, 29 Apr 2022 06:27:30 +0000 (15:27 +0900)
committerbackto.kim <backto.kim@samsung.com>
Fri, 29 Apr 2022 06:27:30 +0000 (15:27 +0900)
if error occured right after handle destroy, tct clean up function trys to destroy that handle again.
that can cause crash.

Change-Id: I0a65347ec5e41eb053345798f1f92b55a215b789

src/itc/media-content/ITs-media-content-bookmark.c

index fe6fb5b3f72f6c4821f3a3a3ab9c4d9123372bd6..471b535d7b68501e9cdb59d7bb37ba3704a80aa0 100755 (executable)
@@ -356,6 +356,7 @@ int ITc_media_bookmark_insert_delete_from_db_p(void)
 
        nRet = media_bookmark_destroy(g_hBookmark);
        PRINT_RESULT(MEDIA_CONTENT_ERROR_NONE, nRet, "media_bookmark_destroy", MediaContentGetError(nRet));
+       g_hBookmark = NULL;
 
        time_t stTime = {0};
        time(&stTime);