mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-29 07:42:04 +00:00
- Stop the stopwatch *before* the reference to the parser is released!
- Include util.lib into the list of statically linked libraries
This commit is contained in:
parent
80857fb244
commit
03b5fa26ea
@ -21,6 +21,11 @@ include <$(DEPTH)\config\config.mak>
|
||||
|
||||
LIBRARY_NAME=raptorhtmlpars
|
||||
DEFINES=-D_IMPL_NS_HTMLPARS -DWIN32_LEAN_AND_MEAN -DXML_DTD
|
||||
|
||||
!if defined(MOZ_PERF)
|
||||
DEFINES = $(DEFINES) -DRAPTOR_PERF_METRICS
|
||||
!endif
|
||||
|
||||
MODULE=raptor
|
||||
REQUIRES=xpcom raptor netlib
|
||||
|
||||
@ -148,6 +153,9 @@ LLIBS= \
|
||||
$(DIST)\lib\expat.lib \
|
||||
!ifdef NECKO
|
||||
$(DIST)\lib\neckoutil_s.lib \
|
||||
!endif
|
||||
!ifdef MOZ_PERF
|
||||
$(DIST)\lib\util.lib \
|
||||
!endif
|
||||
$(LIBNSPR)
|
||||
|
||||
|
@ -636,10 +636,10 @@ nsresult nsParser::EnableParser(PRBool aState){
|
||||
result=mInternalState;
|
||||
}
|
||||
|
||||
NS_STOP_STOPWATCH(mTotalTime)
|
||||
|
||||
// Release reference if we added one at the top of this routine
|
||||
NS_IF_RELEASE(me);
|
||||
|
||||
NS_STOP_STOPWATCH(mTotalTime)
|
||||
return result;
|
||||
}
|
||||
|
||||
|
@ -21,6 +21,11 @@ include <$(DEPTH)\config\config.mak>
|
||||
|
||||
LIBRARY_NAME=raptorhtmlpars
|
||||
DEFINES=-D_IMPL_NS_HTMLPARS -DWIN32_LEAN_AND_MEAN -DXML_DTD
|
||||
|
||||
!if defined(MOZ_PERF)
|
||||
DEFINES = $(DEFINES) -DRAPTOR_PERF_METRICS
|
||||
!endif
|
||||
|
||||
MODULE=raptor
|
||||
REQUIRES=xpcom raptor netlib
|
||||
|
||||
@ -148,6 +153,9 @@ LLIBS= \
|
||||
$(DIST)\lib\expat.lib \
|
||||
!ifdef NECKO
|
||||
$(DIST)\lib\neckoutil_s.lib \
|
||||
!endif
|
||||
!ifdef MOZ_PERF
|
||||
$(DIST)\lib\util.lib \
|
||||
!endif
|
||||
$(LIBNSPR)
|
||||
|
||||
|
@ -636,10 +636,10 @@ nsresult nsParser::EnableParser(PRBool aState){
|
||||
result=mInternalState;
|
||||
}
|
||||
|
||||
NS_STOP_STOPWATCH(mTotalTime)
|
||||
|
||||
// Release reference if we added one at the top of this routine
|
||||
NS_IF_RELEASE(me);
|
||||
|
||||
NS_STOP_STOPWATCH(mTotalTime)
|
||||
return result;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user