Closed
Bug 766341
Opened 13 years ago
Closed 13 years ago
Fix debug warnings in nsDocShell.cpp
Categories
(Core :: General, defect)
Core
General
Tracking
()
RESOLVED
FIXED
mozilla16
People
(Reporter: dzbarsky, Assigned: dzbarsky)
Details
Attachments
(1 file)
|
1.30 KB,
patch
|
smaug
:
review+
|
Details | Diff | Splinter Review |
No description provided.
Attachment #634608 -
Flags: review?(bugs)
Comment 1•13 years ago
|
||
Comment on attachment 634608 [details] [diff] [review]
Patch
>From: David Zbarsky <dzbarsky@gmail.com>
>
>diff --git a/docshell/base/nsDocShell.cpp b/docshell/base/nsDocShell.cpp
>--- a/docshell/base/nsDocShell.cpp
>+++ b/docshell/base/nsDocShell.cpp
>@@ -781,17 +781,17 @@ nsDocShell::nsDocShell():
> if (gDocShellLeakLog)
> PR_LOG(gDocShellLeakLog, PR_LOG_DEBUG, ("DOCSHELL %p created\n", this));
> #endif
>
> #ifdef DEBUG
> // We're counting the number of |nsDocShells| to help find leaks
> ++gNumberOfDocShells;
> if (!PR_GetEnv("MOZ_QUIET")) {
>- printf("++DOCSHELL %p == %ld [id = %ld]\n", (void*) this,
>+ printf("++DOCSHELL %p == %ld [id = %llu]\n", (void*) this,
> gNumberOfDocShells, mHistoryID);
> }
> #endif
> }
>
> nsDocShell::~nsDocShell()
> {
> Destroy();
>@@ -810,17 +810,17 @@ nsDocShell::~nsDocShell()
> if (gDocShellLeakLog)
> PR_LOG(gDocShellLeakLog, PR_LOG_DEBUG, ("DOCSHELL %p destroyed\n", this));
> #endif
>
> #ifdef DEBUG
> // We're counting the number of |nsDocShells| to help find leaks
> --gNumberOfDocShells;
> if (!PR_GetEnv("MOZ_QUIET")) {
>- printf("--DOCSHELL %p == %ld [id = %ld]\n", (void*) this,
>+ printf("--DOCSHELL %p == %ld [id = %llu]\n", (void*) this,
> gNumberOfDocShells, mHistoryID);
> }
> #endif
>
> if (mInPrivateBrowsing) {
> DecreasePrivateDocShellCount();
> }
> }
Attachment #634608 -
Flags: review?(bugs) → review+
| Assignee | ||
Comment 2•13 years ago
|
||
Status: NEW → ASSIGNED
Flags: in-testsuite-
Target Milestone: --- → mozilla16
Comment 3•13 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•