[SCM] WebKit Debian packaging branch, debian/experimental, updated. upstream/1.3.3-9427-gc2be6fc
kevino at webkit.org
kevino at webkit.org
Wed Dec 22 12:45:25 UTC 2010
The following commit has been merged in the debian/experimental branch:
commit 1fe0f67c0dd7d0bc1ce4b33af5ab0095a590f8d2
Author: kevino at webkit.org <kevino at webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Date: Sat Aug 28 23:06:33 2010 +0000
Reviewed by Nikolas Zimmermann.
Add explicit destructor for C++ DOM bindings to avoid memory leaks when using SWIG.
https://bugs.webkit.org/attachment.cgi?bugid=44738
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@66316 268f45cc-cd09-0410-ab3c-d52691b4dbfc
diff --git a/WebCore/ChangeLog b/WebCore/ChangeLog
index 36ab21f..017d28c 100644
--- a/WebCore/ChangeLog
+++ b/WebCore/ChangeLog
@@ -1,3 +1,12 @@
+2010-08-26 Kevin Ollivier <kevino at theolliviers.com>
+
+ Reviewed by Nikolas Zimmermann.
+
+ Add explicit destructor for C++ DOM bindings to avoid memory leaks when using SWIG.
+ https://bugs.webkit.org/attachment.cgi?bugid=44738
+
+ * bindings/scripts/CodeGeneratorCPP.pm:
+
2010-08-28 Eric Carlson <eric.carlson at apple.com>
Reviewed by Dan Bernstein.
diff --git a/WebCore/bindings/scripts/CodeGeneratorCPP.pm b/WebCore/bindings/scripts/CodeGeneratorCPP.pm
index 6bafb1e..f9dd5f2 100644
--- a/WebCore/bindings/scripts/CodeGeneratorCPP.pm
+++ b/WebCore/bindings/scripts/CodeGeneratorCPP.pm
@@ -393,7 +393,9 @@ sub GenerateHeader
# Destructor
if ($parentName eq "WebDOMObject") {
- push(@headerContent, " ~$className();\n");
+ push(@headerContent, " virtual ~$className();\n");
+ } else {
+ push(@headerContent, " virtual ~$className() { }\n");
}
push(@headerContent, "\n");
--
WebKit Debian packaging
More information about the Pkg-webkit-commits
mailing list