From 1c015acfd73f1d1e8fb7cbf917ee71a61e4d78eb Mon Sep 17 00:00:00 2001 From: ByungWoo Lee Date: Mon, 28 Mar 2016 14:56:52 +0900 Subject: [PATCH] Fix bug - don't delete timezone object Change-Id: I3ff6e00affd052eaf11e72b7c995a204c99e0456 --- packaging/capi-base-utils.spec | 2 +- src/utils_i18n_timezone.cpp | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/packaging/capi-base-utils.spec b/packaging/capi-base-utils.spec index d98fc4b..8fbf2de 100755 --- a/packaging/capi-base-utils.spec +++ b/packaging/capi-base-utils.spec @@ -1,6 +1,6 @@ Name: capi-base-utils Summary: Base Utils -Version: 1.2.1 +Version: 1.2.2 Release: 1 Group: Base License: Apache-2.0 and ICU diff --git a/src/utils_i18n_timezone.cpp b/src/utils_i18n_timezone.cpp index fdd706f..bbe4c71 100755 --- a/src/utils_i18n_timezone.cpp +++ b/src/utils_i18n_timezone.cpp @@ -49,9 +49,6 @@ int i18n_timezone_create_gmt(i18n_timezone_h *timezone) *timezone = gmt->clone(); - if (gmt != NULL) - delete gmt; - retv_if(timezone == NULL, I18N_ERROR_OUT_OF_MEMORY); return I18N_ERROR_NONE; -- 2.34.1