Title: [135345] trunk/Source/WebCore
Revision
135345
Author
commit-qu...@webkit.org
Date
2012-11-20 20:54:44 -0800 (Tue, 20 Nov 2012)

Log Message

REGRESSION(r135263): Fix a wrong argument for udat_close
https://bugs.webkit.org/show_bug.cgi?id=102856

Patch by Kunihiko Sakamoto <ksakam...@chromium.org> on 2012-11-20
Reviewed by Kent Tamura.

Fixed a bug that passed wrong pointer to udat_close.

No new tests. No changes in behavior.

* platform/text/LocaleICU.cpp:
(WebCore::LocaleICU::initializeDateTimeFormat): Close correct object.

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (135344 => 135345)


--- trunk/Source/WebCore/ChangeLog	2012-11-21 03:58:47 UTC (rev 135344)
+++ trunk/Source/WebCore/ChangeLog	2012-11-21 04:54:44 UTC (rev 135345)
@@ -1,3 +1,17 @@
+2012-11-20  Kunihiko Sakamoto  <ksakam...@chromium.org>
+
+        REGRESSION(r135263): Fix a wrong argument for udat_close
+        https://bugs.webkit.org/show_bug.cgi?id=102856
+
+        Reviewed by Kent Tamura.
+
+        Fixed a bug that passed wrong pointer to udat_close.
+
+        No new tests. No changes in behavior.
+
+        * platform/text/LocaleICU.cpp:
+        (WebCore::LocaleICU::initializeDateTimeFormat): Close correct object.
+
 2012-11-20  Kentaro Hara  <hara...@chromium.org>
 
         Remove $outputDir and $outputHeadersDir from global variables of code generators

Modified: trunk/Source/WebCore/platform/text/LocaleICU.cpp (135344 => 135345)


--- trunk/Source/WebCore/platform/text/LocaleICU.cpp	2012-11-21 03:58:47 UTC (rev 135344)
+++ trunk/Source/WebCore/platform/text/LocaleICU.cpp	2012-11-21 04:54:44 UTC (rev 135345)
@@ -305,7 +305,7 @@
 
     UDateFormat* dateTimeFormatWithoutSeconds = openDateFormat(UDAT_SHORT, UDAT_SHORT);
     m_dateTimeFormatWithoutSeconds = getDateFormatPattern(dateTimeFormatWithoutSeconds);
-    udat_close(dateTimeFormatWithSeconds);
+    udat_close(dateTimeFormatWithoutSeconds);
 
     OwnPtr<Vector<String> > timeAMPMLabels = createLabelVector(m_mediumTimeFormat, UDAT_AM_PMS, UCAL_AM, 2);
     if (!timeAMPMLabels)
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
http://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to