summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunghoon Park <jh9216.park@samsung.com>2016-01-25 05:13:00 (GMT)
committerJunghoon Park <jh9216.park@samsung.com>2016-01-25 05:13:00 (GMT)
commit0aa085d55a1519e4d93e272d668b492053944b7f (patch)
treebd3c75804b70dc83a0728702b8c80b9a6f65d47b
parent09554a316c1336a6800cda596445b0d196b0a2ed (diff)
downloadui-gadget-1-accepted/tizen/tv/20160125.224739.zip
ui-gadget-1-accepted/tizen/tv/20160125.224739.tar.gz
ui-gadget-1-accepted/tizen/tv/20160125.224739.tar.bz2
Change-Id: Iec5f86463ab5e9095ac6f8e4b4049d3eebfc5614 Signed-off-by: Junghoon Park <jh9216.park@samsung.com>
-rw-r--r--client/ug-client.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/client/ug-client.c b/client/ug-client.c
index 451e9df..c1f7b5c 100644
--- a/client/ug-client.c
+++ b/client/ug-client.c
@@ -619,6 +619,7 @@ static int update_argument(const char *optarg, struct appdata *ad)
int main(int argc, char *argv[])
{
int opt;
+ int ret;
struct appdata ad;
struct appcore_ops ops = {
.create = app_create,
@@ -674,5 +675,12 @@ int main(int argc, char *argv[])
/* .../bin/{name} */
ad.name = strdup(&name[1]);
}
- return appcore_efl_main(PACKAGE, &argc, &argv, &ops);
+
+ ret = appcore_efl_main(PACKAGE, &argc, &argv, &ops);
+ if (ret)
+ LOGE("appcore_efl_main failed with error : %d", ret);
+ if (ad.name)
+ free(ad.name);
+
+ return ret;
}