End Google Ads 201810 - BS.net 01 --> I do call ITextServices::Release() to release that reference. But the allocated memory isn't released. I got following stack trace by "!heap -p -a" in Windbg after ITextServices::Release() is called.
Or, who can tell me what is the offical steps to release ITextServices correctly?
Anybody could help me? Thanks in advance.

0:001> !heap -p -a 027b5360
address 027b5360 found in
_HEAP @ 150000
HEAP_ENTRY Size Prev Flags UserPtr UserSize - state
027b5360 0013 0000 [07] 027b5368 00080 - (busy)
Trace: 02fb
7c98ee72 ntdll!RtlDebugAllocateHeap+0x000000e1
7c96b3a2 ntdll!RtlAllocateHeapSlowly+0x00000044
7c93aa2b ntdll!RtlAllocateHeap+0x00000e64
7c8099ef kernel32!LocalAlloc+0x00000058
74de8f78 RICHED20!CW32System::PvReAlloc+0x00000026
74d9577c RICHED20!CArrayBase::ArAdd+0x00000040
74d957d1 RICHED20!CArrayBase::ArInsert+0x0000001a
74da426c RICHED20!CTxtArray::AddBlock+0x0000001c
74dd90d6 RICHED20!CTxtPtr::InsertRange+0x00000034
74dd99bf RICHED20!CTxtPtr::ReplaceRange+0x00000110
74dcb3a6 RICHED20!CRchTxtPtr::ReplaceRange+0x0000039c
74da7b24 RICHED20!CTxtEdit::SetRichDocEndEOP+0x00000041
74daa42f RICHED20!CTxtEdit::Init+0x000003be
74ddd88a RICHED20!CreateTextServices+0x000000a0
*** WARNING: Unable to verify checksum for d:\Build\BooguNT\BooguNote_2009_11_22_datime\BooguNote\Debug\BooguNote.exe
4b7b40 BooguNote!CBooguNoteText::Init+0x00000260
4bd4ad BooguNote!CreateHost+0x000000fd
4bd5f2 BooguNote!CreateTextControl+0x00000062
4cb745 BooguNote!CBooguNoteView::CreateTextBlock+0x00000085
4bf801 BooguNote!CBooguNoteView::LoadData+0x00000141
4bea3b BooguNote!CBooguNoteView::OpenFile+0x0000002b
4beb5e BooguNote!CBooguNoteView::OnCreate+0x0000008e
4e7790 BooguNote!CBooguNoteView::ProcessWindowMessage+0x000000a0
4a786a BooguNote!ATL::CWindowImplBaseT::WindowProc+0x0000007a
77d18734 USER32!InternalCallWinProc+0x00000028
77d18816 USER32!UserCallWinProcCheckWow+0x00000150
77d1b4c0 USER32!DispatchClientMessage+0x000000a3
77d1f9fe USER32!__fnINLPCREATESTRUCT+0x0000008b
7c92e473 ntdll!KiUserCallbackDispatcher+0x00000013
77d1fecc USER32!_CreateWindowEx+0x000001ed
77d1fc58 USER32!CreateWindowExW+0x00000033
4aa5f2 BooguNote!ATL::CWindowImplBaseT::Create+0x00000122
4f0e29 BooguNote!ATL::CWindowImpl::Create+0x000000a9

:001> !heap -p -a 027b53f8
address 027b53f8 found in
_HEAP @ 150000
HEAP_ENTRY Size Prev Flags UserPtr UserSize - state
027b53f8 0008 0000 [07] 027b5400 00028 - (busy)
Trace: 02fe
7c98ee72 ntdll!RtlDebugAllocateHeap+0x000000e1
7c96b3a2 ntdll!RtlAllocateHeapSlowly+0x00000044
7c93aa2b ntdll!RtlAllocateHeap+0x00000e64
7c8099ef kernel32!LocalAlloc+0x00000058
74d919fb RICHED20!CW32System::PvAlloc+0x00000011
74d919e3 RICHED20!operator new+0x0000000f
74dde615 RICHED20!CTxtEdit::GetDocInfo+0x00000013
74ddd7e1 RICHED20!CTxtEdit::TxSetText+0x0000001b
4b7bc5 BooguNote!CBooguNoteText::Init+0x000002e5
4bd4ad BooguNote!CreateHost+0x000000fd
4bd5f2 BooguNote!CreateTextControl+0x00000062
4cb745 BooguNote!CBooguNoteView::CreateTextBlock+0x00000085
4bf801 BooguNote!CBooguNoteView::LoadData+0x00000141
4bea3b BooguNote!CBooguNoteView::OpenFile+0x0000002b
4beb5e BooguNote!CBooguNoteView::OnCreate+0x0000008e
4e7790 BooguNote!CBooguNoteView::ProcessWindowMessage+0x000000a0
4a786a BooguNote!ATL::CWindowImplBaseT::WindowProc+0x0000007a
77d18734 USER32!InternalCallWinProc+0x00000028
77d18816 USER32!UserCallWinProcCheckWow+0x00000150
77d1b4c0 USER32!DispatchClientMessage+0x000000a3
77d1f9fe USER32!__fnINLPCREATESTRUCT+0x0000008b
7c92e473 ntdll!KiUserCallbackDispatcher+0x00000013
77d1fecc USER32!_CreateWindowEx+0x000001ed
77d1fc58 USER32!CreateWindowExW+0x00000033
4aa5f2 BooguNote!ATL::CWindowImplBaseT::Create+0x00000122
4f0e29 BooguNote!ATL::CWindowImpl::Create+0x000000a9
4ef8d8 BooguNote!CMainFrame::OpenFileByName+0x00000158
4e900c BooguNote!CMainFrame::OnDropFiles+0x0000013c
4e10b7 BooguNote!CMainFrame::ProcessWindowMessage+0x000003a7
5166ca BooguNote!ATL::CWindowImplBaseT::WindowProc+0x0000007a
77d18734 USER32!InternalCallWinProc+0x00000028
77d18816 USER32!UserCallWinProcCheckWow+0x00000150

0:001> !heap -p -a 027b5438
address 027b5438 found in
_HEAP @ 150000
HEAP_ENTRY Size Prev Flags UserPtr UserSize - state
027b5438 001b 0000 [07] 027b5440 000c0 - (busy)
Trace: 02ff
7c98ee72 ntdll!RtlDebugAllocateHeap+0x000000e1
7c96b3a2 ntdll!RtlAllocateHeapSlowly+0x00000044
7c93aa2b ntdll!RtlAllocateHeap+0x00000e64
7c8099ef kernel32!LocalAlloc+0x00000058
74de8f78 RICHED20!CW32System::PvReAlloc+0x00000026
74d9577c RICHED20!CArrayBase::ArAdd+0x00000040
74da202d RICHED20!CDisplayML::RecalcLines+0x000000a3
74da2ba2 RICHED20!CDisplayML::RecalcView+0x00000033
74d9ee4e RICHED20!CDisplay::RecalcView+0x00000029
74ddb211 RICHED20!CTxtEdit::OnTxInPlaceActivate+0x00000066
4b7c7c BooguNote!CBooguNoteText::Init+0x0000039c
4bd4ad BooguNote!CreateHost+0x000000fd
4bd5f2 BooguNote!CreateTextControl+0x00000062
4cb745 BooguNote!CBooguNoteView::CreateTextBlock+0x00000085
4bf801 BooguNote!CBooguNoteView::LoadData+0x00000141
4bea3b BooguNote!CBooguNoteView::OpenFile+0x0000002b
4beb5e BooguNote!CBooguNoteView::OnCreate+0x0000008e
4e7790 BooguNote!CBooguNoteView::ProcessWindowMessage+0x000000a0
4a786a BooguNote!ATL::CWindowImplBaseT::WindowProc+0x0000007a
77d18734 USER32!InternalCallWinProc+0x00000028
77d18816 USER32!UserCallWinProcCheckWow+0x00000150
77d1b4c0 USER32!DispatchClientMessage+0x000000a3
77d1f9fe USER32!__fnINLPCREATESTRUCT+0x0000008b
7c92e473 ntdll!KiUserCallbackDispatcher+0x00000013
77d1fecc USER32!_CreateWindowEx+0x000001ed
77d1fc58 USER32!CreateWindowExW+0x00000033
4aa5f2 BooguNote!ATL::CWindowImplBaseT::Create+0x00000122
4f0e29 BooguNote!ATL::CWindowImpl::Create+0x000000a9
4ef8d8 BooguNote!CMainFrame::OpenFileByName+0x00000158
4e900c BooguNote!CMainFrame::OnDropFiles+0x0000013c
4e10b7 BooguNote!CMainFrame::ProcessWindowMessage+0x000003a7
5166ca BooguNote!ATL::CWindowImplBaseT::WindowProc+0x0000007a