Closed Bug 71227 Opened 24 years ago Closed 24 years ago

Installer trashes the memory manager

Categories

(SeaMonkey :: Installer, defect, P3)

PowerPC
Mac System 8.5
defect

Tracking

(Not tracked)

VERIFIED FIXED
mozilla0.8.1

People

(Reporter: sfraser_bugs, Assigned: samir_bugzilla)

Details

(Whiteboard: Fix in hand. Waiting for tree to open.)

On quitting, the installer calls DisposePtr on a bunch of things that are really handles. This is likely to cause sporadic crashes on quit of the installer. I'm not sure how this slipped past Spotlight.
Status: NEW → ASSIGNED
Keywords: nsbeta1
Priority: -- → P3
Target Milestone: --- → mozilla0.9
The 6.0/6.01 branch has the offending DisposePtr code #ifdef'ed out. I suggest you move the change to the trunk. There's no reason for you to deallocate all the memory allocation you did (since it's all in the app's heap) as quitting the app results in the heap being disposed.
That soudns good. (The memory manager doesn't do any special defragmentation magic or some such I should be aware of and hence make explicit calls to free allocated memory, right? That is, it will do any defrag-type magic on its own when the heap is reclaimed upon app shutdown, right?)
IIRC all your allocations were done with NewPtr or NewHandle which just allocates inside the app heap so no fragmentation worries there. Only if you were allocating in the system heap would you need to worry about freeing the memory when you quit.
Thanks for the confirmation Steve.
Target Milestone: mozilla0.9 → mozilla0.8.1
QA Contact: gemal → gbush
Whiteboard: Fix in hand. Waiting for tree to open.
Keywords: nsbeta1nsbeta1+
Fix checked in.
Status: ASSIGNED → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
Simon or Steve, would you verify? I am not seeing any crashes on file/quit but need help with Mac verifies. Thanks
verified
Status: RESOLVED → VERIFIED
Product: Browser → Seamonkey
You need to log in before you can comment on or make changes to this bug.