Remove potential defect: It doest not need to call __tpl_hashlist_delete() when the... 63/61463/3 submit/tizen/20160314.085344
authorMun, Gwan-gyeong <kk.moon@samsung.com>
Tue, 8 Mar 2016 05:05:57 +0000 (14:05 +0900)
committerSooChan Lim <sc1.lim@samsung.com>
Mon, 14 Mar 2016 08:20:33 +0000 (01:20 -0700)
Change-Id: Icfa9e0d05a0a906bc2cee33573b6aa06b8b536be

src/tpl.c

index 228e2c0..399e561 100644 (file)
--- a/src/tpl.c
+++ b/src/tpl.c
@@ -172,7 +172,6 @@ __tpl_runtime_add_display(tpl_display_t *display)
        if (TPL_ERROR_NONE != ret) {
                TPL_ERR("__tpl_hashlist_insert failed. list(%p), handle(%d), display(%p)",
                        runtime->displays[type], handle, display);
-               __tpl_hashlist_destroy(&runtime->displays[type]);
                pthread_mutex_unlock(&runtime_mutex);
                return TPL_ERROR_INVALID_OPERATION;
        }