diff options
Diffstat (limited to 'WebCore/bridge/jni/JNIBridge.cpp')
-rw-r--r-- | WebCore/bridge/jni/JNIBridge.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/WebCore/bridge/jni/JNIBridge.cpp b/WebCore/bridge/jni/JNIBridge.cpp index 3329ba8..f8a3979 100644 --- a/WebCore/bridge/jni/JNIBridge.cpp +++ b/WebCore/bridge/jni/JNIBridge.cpp @@ -107,7 +107,7 @@ JavaMethod::JavaMethod(JNIEnv* env, jobject aMethod) JavaMethod::~JavaMethod() { if (m_signature) - free(m_signature); + fastFree(m_signature); delete[] m_parameters; }; @@ -119,7 +119,7 @@ static void appendClassName(StringBuilder& builder, const char* className) ASSERT(JSLock::lockCount() > 0); #endif - char* c = strdup(className); + char* c = fastStrDup(className); char* result = c; while (*c) { @@ -130,7 +130,7 @@ static void appendClassName(StringBuilder& builder, const char* className) builder.append(result); - free(result); + fastFree(result); } const char* JavaMethod::signature() const @@ -169,7 +169,7 @@ const char* JavaMethod::signature() const } String signatureString = signatureBuilder.toString(); - m_signature = strdup(signatureString.utf8().data()); + m_signature = fastStrDup(signatureString.utf8().data()); } return m_signature; |