From b2fe40e6711ab742a26b0584d49904dc214fa4f6 Mon Sep 17 00:00:00 2001 From: Martin Schlemmer Date: Sun, 19 Jan 2003 14:28:54 +0000 Subject: fix memory leak --- .../1.2/mozilla-1.2-image-reload-memleak.patch | 45 +++++++++++++++++++++ net-www/mozilla/files/digest-mozilla-1.0-r3 | 1 - net-www/mozilla/files/digest-mozilla-1.2.1-r1 | 4 -- net-www/mozilla/files/digest-mozilla-1.2.1-r2 | 4 -- net-www/mozilla/files/digest-mozilla-1.2.1-r3 | 4 -- net-www/mozilla/files/digest-mozilla-1.2.1-r5 | 4 ++ net-www/mozilla/files/digest-mozilla-1.3a | 4 -- net-www/mozilla/files/gtk2_embed.patch.bz2 | Bin 4153 -> 0 bytes net-www/mozilla/files/gtk2_widget.patch.bz2 | Bin 2198 -> 0 bytes 9 files changed, 49 insertions(+), 17 deletions(-) create mode 100644 net-www/mozilla/files/1.2/mozilla-1.2-image-reload-memleak.patch delete mode 100644 net-www/mozilla/files/digest-mozilla-1.0-r3 delete mode 100644 net-www/mozilla/files/digest-mozilla-1.2.1-r1 delete mode 100644 net-www/mozilla/files/digest-mozilla-1.2.1-r2 delete mode 100644 net-www/mozilla/files/digest-mozilla-1.2.1-r3 create mode 100644 net-www/mozilla/files/digest-mozilla-1.2.1-r5 delete mode 100644 net-www/mozilla/files/digest-mozilla-1.3a delete mode 100644 net-www/mozilla/files/gtk2_embed.patch.bz2 delete mode 100644 net-www/mozilla/files/gtk2_widget.patch.bz2 (limited to 'net-www/mozilla/files') 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 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-r2 b/net-www/mozilla/files/digest-mozilla-1.2.1-r2 deleted file mode 100644 index 757f3e5294c7..000000000000 --- a/net-www/mozilla/files/digest-mozilla-1.2.1-r2 +++ /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-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-r5 b/net-www/mozilla/files/digest-mozilla-1.2.1-r5 new file mode 100644 index 000000000000..757f3e5294c7 --- /dev/null +++ b/net-www/mozilla/files/digest-mozilla-1.2.1-r5 @@ -0,0 +1,4 @@ +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.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 deleted file mode 100644 index 5b7be782b8ae..000000000000 Binary files a/net-www/mozilla/files/gtk2_embed.patch.bz2 and /dev/null differ diff --git a/net-www/mozilla/files/gtk2_widget.patch.bz2 b/net-www/mozilla/files/gtk2_widget.patch.bz2 deleted file mode 100644 index 6dbd86db001e..000000000000 Binary files a/net-www/mozilla/files/gtk2_widget.patch.bz2 and /dev/null differ -- cgit v1.2.3-65-gdbad