[tizen] Fix memory leak and for exception case. 60/196760/1 accepted/tizen/4.0/unified/20190104.230754 submit/tizen_4.0/20190104.073831
authorWonsik, Jung <sidein@samsung.com>
Mon, 26 Feb 2018 08:28:56 +0000 (17:28 +0900)
committerMoonhee Choi <mh0310.choi@samsung.com>
Fri, 4 Jan 2019 04:34:49 +0000 (13:34 +0900)
commita86d71bfddcfc30afbc4e3b396bf1bf84cc9dfd9
treea9dfb3fd6d4929bbc5202cb047848c8dd77fc94d
parent2a1da7fe284f99d546a3aaf08b231860085837dd
[tizen] Fix memory leak and for exception case.

strdup() is used in app_get_resource_path() and the return value of the function is NULL sometimes.
So, this patch is to fix for two cases.

Change-Id: Ibf58a674a21bcde5a2b0ff5e0f952cd55fadadb9
adaptors/tizen/framework-tizen.cpp