Memory leak of 44 bytes from 1 block allocated in nsAbAutoCompleteSession::AddToResult

RESOLVED WONTFIX

Status

MailNews Core
Address Book
RESOLVED WONTFIX
16 years ago
10 years ago

People

(Reporter: stephend@netscape.com (gone - use stephen.donner@gmail.com instead), Unassigned)

Tracking

({memory-leak})

Trunk
x86
Windows 2000
memory-leak

Firefox Tracking Flags

(Not tracked)

Details

Build ID: latest win32 tip under Purify.

Steps:

1. Just typed in 'steph' and had mailnews autocomplete a local collected 
addressbook dir to 'stephend@netscape.com'. 
2. Didn't send the message, just closed the window and chose "Don't Save'.
3. Exited.

[W] MLK: Memory leak of 44 bytes from 1 block allocated in 
nsAbAutoCompleteSession::AddToResult(WORD const*,WORD const*,WORD const*,WORD 
const*,WORD const*,WORD const*,WORD 
const*,int,MatchType::nsAbAutoCompleteSession,nsIAutoCompleteResults *)
        Distribution of leaked blocks
        Allocation location
            new(UINT)      [MSVCRT.DLL]
            nsAbAutoCompleteSession::AddToResult(WORD const*,WORD const*,WORD 
const*,WORD const*,WORD const*,WORD const*,WORD 
const*,int,MatchType::nsAbAutoCompleteSession,nsIAutoCompleteResults *) 
[nsAbAutoCompleteSession.cpp:198]
                    nsCOMPtr<nsIAutoCompleteItem> newItem = do_CreateInstance
(NS_AUTOCOMPLETEITEM_CONTRACTID, &rv);
                    if (NS_SUCCEEDED(rv))
                    {
             =>       nsAbAutoCompleteParam *param = new nsAbAutoCompleteParam
(pNickNameStr, pDisplayNameStr, pFirstNameStr, pLastNameStr, pEmailStr, 
pNotesStr, pDirName, bIsMailList, type);
                      NS_IF_ADDREF(param);
                      newItem->SetParam(param);
                      NS_IF_RELEASE(param);
            nsAbAutoCompleteSession::OnStartLookup(WORD 
const*,nsIAutoCompleteResults *,nsIAutoCompleteListener *) 
[nsAbAutoCompleteSession.cpp:767]
                            PRUnichar emptyStr = 0;
                            AddToResult(&emptyStr, uSearchString, &emptyStr, 
&emptyStr,
                                        &emptyStr, &emptyStr, &emptyStr, 
PR_FALSE,
             =>                         DEFAULT_MATCH, results);
                            addedDefaultItem = PR_TRUE;
                        }
                
            XPTC_InvokeByIndex [xptcinvoke.cpp:105]
            XPCWrappedNative::CallMethod
(XPCCallContext&,CallMode::XPCWrappedNative) [xpcwrappednative.cpp:2025]
            XPC_WN_CallMethod(JSContext *,JSObject *,UINT,long *,long *) 
[xpcwrappednativejsops.cpp:1266]
            js_Invoke      [jsinterp.c:788]
            js_Interpret   [jsinterp.c:2745]
            js_Invoke      [jsinterp.c:805]
            js_InternalInvoke [jsinterp.c:880]
            JS_CallFunctionValue [jsapi.c:3412]
            nsJSContext::CallEventHandler(void *,void *,UINT,void *,int *,int) 
[nsJSEnvironment.cpp:1016]
            GlobalWindowImpl::RunTimeout(nsTimeoutImpl *) 
[nsGlobalWindow.cpp:4221]
            GlobalWindowImpl::TimerCallback(nsITimer *,void *) 
[nsGlobalWindow.cpp:4569]
            ???            [ip=0x09fcf6e0]
            nsTimerImpl::Process(void) [nsTimerImpl.cpp:329]
            handleMyEvent(MyEventType *) [nsTimerImpl.cpp:370]
            PL_HandleEvent [plevent.c:596]
            PL_ProcessPendingEvents [plevent.c:526]
            md_EventReceiverProc [plevent.c:1077]
Keywords: mlk
QA Contact: nbaca → stephend
mass re-assign.
Assignee: racham → sspitzer
Product: Browser → Seamonkey

Updated

13 years ago
Assignee: sspitzer → mail
Assignee: mail → nobody
Component: Address Book → MailNews: Address Book
Product: Mozilla Application Suite → Core
QA Contact: stephend → addressbook
Although it hasn't gone away yet, nsAbAutoCompleteSession will be going away soon (part of bug 370306 and related bugs), therefore marking as wontfix, as its not worth spending the time on it.
Status: NEW → RESOLVED
Last Resolved: 10 years ago
Resolution: --- → WONTFIX
(Assignee)

Updated

10 years ago
Product: Core → MailNews Core
You need to log in before you can comment on or make changes to this bug.