diff options
author | Martin Schlemmer <azarah@gentoo.org> | 2003-01-19 14:28:54 +0000 |
---|---|---|
committer | Martin Schlemmer <azarah@gentoo.org> | 2003-01-19 14:28:54 +0000 |
commit | b2fe40e6711ab742a26b0584d49904dc214fa4f6 (patch) | |
tree | 86b3608fcc40da65f3f5d761249ded4165e748f0 /net-www/mozilla/files | |
parent | new ebuild for korean input modules for gtk+-2.0 (diff) | |
download | gentoo-2-b2fe40e6711ab742a26b0584d49904dc214fa4f6.tar.gz gentoo-2-b2fe40e6711ab742a26b0584d49904dc214fa4f6.tar.bz2 gentoo-2-b2fe40e6711ab742a26b0584d49904dc214fa4f6.zip |
fix memory leak
Diffstat (limited to 'net-www/mozilla/files')
-rw-r--r-- | net-www/mozilla/files/1.2/mozilla-1.2-image-reload-memleak.patch | 45 | ||||
-rw-r--r-- | net-www/mozilla/files/digest-mozilla-1.0-r3 | 1 | ||||
-rw-r--r-- | net-www/mozilla/files/digest-mozilla-1.2.1-r1 | 4 | ||||
-rw-r--r-- | net-www/mozilla/files/digest-mozilla-1.2.1-r3 | 4 | ||||
-rw-r--r-- | net-www/mozilla/files/digest-mozilla-1.2.1-r5 (renamed from net-www/mozilla/files/digest-mozilla-1.2.1-r2) | 0 | ||||
-rw-r--r-- | net-www/mozilla/files/digest-mozilla-1.3a | 4 | ||||
-rw-r--r-- | net-www/mozilla/files/gtk2_embed.patch.bz2 | bin | 4153 -> 0 bytes | |||
-rw-r--r-- | net-www/mozilla/files/gtk2_widget.patch.bz2 | bin | 2198 -> 0 bytes |
8 files changed, 45 insertions, 13 deletions
diff --git a/net-www/mozilla/files/1.2/mozilla-1.2-image-reload-memleak.patch b/net-www/mozilla/files/1.2/mozilla-1.2-image-reload-memleak.patch new file mode 100644 index 000000000000..51e6c37ef826 --- /dev/null +++ b/net-www/mozilla/files/1.2/mozilla-1.2-image-reload-memleak.patch @@ -0,0 +1,45 @@ +? hpradhan@hedwig
+Index: nsImageDocument.cpp
+===================================================================
+RCS file: /cvsroot/mozilla/content/html/document/src/nsImageDocument.cpp,v
+retrieving revision 1.87
+diff -u -u -r1.87 nsImageDocument.cpp
+--- content/html/document/src/nsImageDocument.cpp 28 Sep 2002 10:50:50 -0000 1.87
++++ content/html/document/src/nsImageDocument.cpp 11 Dec 2002 11:52:11 -0000
+@@ -97,6 +97,8 @@
+ PRBool aReset = PR_TRUE,
+ nsIContentSink* aSink = nsnull);
+
++ NS_IMETHOD SetScriptGlobalObject(nsIScriptGlobalObject* aScriptGlobalObject);
++
+ nsresult CreateSyntheticDocument();
+
+ nsresult EndLayout(nsISupports *ctxt,
+@@ -144,8 +146,6 @@
+ NS_IMETHODIMP
+ ImageListener::OnStartRequest(nsIRequest* request, nsISupports *ctxt)
+ {
+- nsresult rv;
+-
+ nsCOMPtr<nsIChannel> channel = do_QueryInterface(request);
+ if (!channel) return NS_ERROR_NULL_POINTER;
+
+@@ -276,6 +276,18 @@
+ return NS_OK;
+ }
+
++NS_IMETHODIMP
++nsImageDocument::SetScriptGlobalObject(nsIScriptGlobalObject* aScriptGlobalObject)
++{
++ if (!aScriptGlobalObject) {
++ // If the global object is being set to null, then it means we are
++ // going away soon. Drop our ref to imgRequest so that we dont end
++ // up leaking due to cycles through imgLib
++ mImageRequest = nsnull;
++ }
++
++ return nsHTMLDocument::SetScriptGlobalObject(aScriptGlobalObject);
++}
+
+ nsresult
+ nsImageDocument::CreateSyntheticDocument()
diff --git a/net-www/mozilla/files/digest-mozilla-1.0-r3 b/net-www/mozilla/files/digest-mozilla-1.0-r3 deleted file mode 100644 index b445e74f96ef..000000000000 --- a/net-www/mozilla/files/digest-mozilla-1.0-r3 +++ /dev/null @@ -1 +0,0 @@ -MD5 033da936e48336aa2c5d8bf0aa039056 mozilla-source-1.0.tar.bz2 29620700 diff --git a/net-www/mozilla/files/digest-mozilla-1.2.1-r1 b/net-www/mozilla/files/digest-mozilla-1.2.1-r1 deleted file mode 100644 index 2a452b7df951..000000000000 --- a/net-www/mozilla/files/digest-mozilla-1.2.1-r1 +++ /dev/null @@ -1,4 +0,0 @@ -MD5 58c37a29ef2fae2939f5be116abec32a mozilla-source-1.2.1.tar.bz2 30919648 -MD5 365b640d9ba605fdf478e2e96ce8ce89 enigmail-0.71.0.tar.gz 179703 -MD5 e00bb4cdc9abb69e875f6717c110dfa7 ipc-1.0.1.tar.gz 128677 -MD5 5ef5c58e501b0cb873ee2b2a04ed74e3 fcpackage.2_0.tar.gz 538159 diff --git a/net-www/mozilla/files/digest-mozilla-1.2.1-r3 b/net-www/mozilla/files/digest-mozilla-1.2.1-r3 deleted file mode 100644 index 757f3e5294c7..000000000000 --- a/net-www/mozilla/files/digest-mozilla-1.2.1-r3 +++ /dev/null @@ -1,4 +0,0 @@ -MD5 58c37a29ef2fae2939f5be116abec32a mozilla-source-1.2.1.tar.bz2 30919648 -MD5 365b640d9ba605fdf478e2e96ce8ce89 enigmail-0.71.0.tar.gz 179703 -MD5 e00bb4cdc9abb69e875f6717c110dfa7 ipc-1.0.1.tar.gz 128677 -MD5 2f2852c80924a9b5356c3037a471c1a1 fcpackage.2_1.tar.gz 544661 diff --git a/net-www/mozilla/files/digest-mozilla-1.2.1-r2 b/net-www/mozilla/files/digest-mozilla-1.2.1-r5 index 757f3e5294c7..757f3e5294c7 100644 --- a/net-www/mozilla/files/digest-mozilla-1.2.1-r2 +++ b/net-www/mozilla/files/digest-mozilla-1.2.1-r5 diff --git a/net-www/mozilla/files/digest-mozilla-1.3a b/net-www/mozilla/files/digest-mozilla-1.3a deleted file mode 100644 index 568ebda35bbe..000000000000 --- a/net-www/mozilla/files/digest-mozilla-1.3a +++ /dev/null @@ -1,4 +0,0 @@ -MD5 3f5d70a6db244735ac5fe8861fce048f mozilla-source-1.3a.tar.gz 41169740 -MD5 365b640d9ba605fdf478e2e96ce8ce89 enigmail-0.71.0.tar.gz 179703 -MD5 e00bb4cdc9abb69e875f6717c110dfa7 ipc-1.0.1.tar.gz 128677 -MD5 2f2852c80924a9b5356c3037a471c1a1 fcpackage.2_1.tar.gz 544661 diff --git a/net-www/mozilla/files/gtk2_embed.patch.bz2 b/net-www/mozilla/files/gtk2_embed.patch.bz2 Binary files differdeleted file mode 100644 index 5b7be782b8ae..000000000000 --- a/net-www/mozilla/files/gtk2_embed.patch.bz2 +++ /dev/null diff --git a/net-www/mozilla/files/gtk2_widget.patch.bz2 b/net-www/mozilla/files/gtk2_widget.patch.bz2 Binary files differdeleted file mode 100644 index 6dbd86db001e..000000000000 --- a/net-www/mozilla/files/gtk2_widget.patch.bz2 +++ /dev/null |