[SCM] WebKit Debian packaging branch, debian/unstable, updated. debian/1.1.15-1-40151-g37bb677
darin
darin at 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Sat Sep 26 08:25:04 UTC 2009
The following commit has been merged in the debian/unstable branch:
commit 03f28a9a53c0a2b2c0696b613068919da144c7ee
Author: darin <darin at 268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Date: Mon Feb 2 18:42:37 2004 +0000
Reviewed by John.
- fix at least some of <rdar://problem/3546393>: 10,000 leaks, many of DOM::AtomicString::add, after one run of cvs-base
* khtml/xml/dom_atomicstring.cpp: (DOM::AtomicString::add): Remove extra allocation of strings.
This should speed things up a bit as well as fixing one big leak.
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@6022 268f45cc-cd09-0410-ab3c-d52691b4dbfc
diff --git a/WebCore/ChangeLog-2005-08-23 b/WebCore/ChangeLog-2005-08-23
index a68df0f..4dcafd3 100644
--- a/WebCore/ChangeLog-2005-08-23
+++ b/WebCore/ChangeLog-2005-08-23
@@ -1,3 +1,12 @@
+2004-02-02 Darin Adler <darin at apple.com>
+
+ Reviewed by John.
+
+ - fix at least some of <rdar://problem/3546393>: 10,000 leaks, many of DOM::AtomicString::add, after one run of cvs-base
+
+ * khtml/xml/dom_atomicstring.cpp: (DOM::AtomicString::add): Remove extra allocation of strings.
+ This should speed things up a bit as well as fixing one big leak.
+
2004-02-02 Chris Blumenberg <cblu at apple.com>
Fixed: <rdar://problem/3546379>: support for editing via drag & drop
diff --git a/WebCore/khtml/xml/dom_atomicstring.cpp b/WebCore/khtml/xml/dom_atomicstring.cpp
index 8cc4a27..45b756f 100644
--- a/WebCore/khtml/xml/dom_atomicstring.cpp
+++ b/WebCore/khtml/xml/dom_atomicstring.cpp
@@ -132,11 +132,7 @@ DOMStringImpl *AtomicString::add(const char *c)
i = (i + 1) & _tableSizeMask;
}
- QChar *d = new QChar[length];
- for (int j = 0; j != length; j++)
- d[j] = c[j];
-
- DOMStringImpl *r = new DOMStringImpl(d, length);
+ DOMStringImpl *r = new DOMStringImpl(c, length);
r->_hash = hash;
_table[i] = r;
@@ -172,11 +168,7 @@ DOMStringImpl *AtomicString::add(const QChar *s, int length)
i = (i + 1) & _tableSizeMask;
}
- QChar *d = new QChar[length];
- for (int j = 0; j != length; j++)
- d[j] = s[j];
-
- DOMStringImpl *r = new DOMStringImpl(d, length);
+ DOMStringImpl *r = new DOMStringImpl(s, length);
r->_hash = hash;
_table[i] = r;
--
WebKit Debian packaging
More information about the Pkg-webkit-commits
mailing list