Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
c9c2692d
Commit
c9c2692d
authored
Jan 05, 2015
by
Francois Gouget
Committed by
Alexandre Julliard
Jan 05, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
riched20: Move DestroyIRichEditOle() into IRichEditOle:Release().
parent
3b87dbe0
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
17 deletions
+12
-17
editor.h
dlls/riched20/editor.h
+0
-1
richole.c
dlls/riched20/richole.c
+12
-16
No files found.
dlls/riched20/editor.h
View file @
c9c2692d
...
...
@@ -241,7 +241,6 @@ int ME_GetParaBorderWidth(const ME_Context *c, int flags) DECLSPEC_HIDDEN;
/* richole.c */
LRESULT
CreateIRichEditOle
(
IUnknown
*
outer_unk
,
ME_TextEditor
*
editor
,
LPVOID
*
ppvObj
)
DECLSPEC_HIDDEN
;
void
DestroyIRichEditOle
(
IRichEditOle
*
iface
)
DECLSPEC_HIDDEN
;
void
ME_DrawOLE
(
ME_Context
*
c
,
int
x
,
int
y
,
ME_Run
*
run
,
ME_Paragraph
*
para
,
BOOL
selected
)
DECLSPEC_HIDDEN
;
void
ME_GetOLEObjectSize
(
const
ME_Context
*
c
,
ME_Run
*
run
,
SIZE
*
pSize
)
DECLSPEC_HIDDEN
;
void
ME_CopyReObject
(
REOBJECT
*
dst
,
const
REOBJECT
*
src
)
DECLSPEC_HIDDEN
;
...
...
dlls/riched20/richole.c
View file @
c9c2692d
...
...
@@ -143,7 +143,18 @@ static ULONG WINAPI IRichEditOleImpl_inner_fnRelease(IUnknown *iface)
TRACE
(
"%p ref=%u
\n
"
,
This
,
ref
);
if
(
!
ref
)
DestroyIRichEditOle
(
&
This
->
IRichEditOle_iface
);
{
ITextRangeImpl
*
txtRge
;
TRACE
(
"Destroying %p
\n
"
,
This
);
This
->
txtSel
->
reOle
=
NULL
;
This
->
editor
->
reOle
=
NULL
;
ITextSelection_Release
(
&
This
->
txtSel
->
ITextSelection_iface
);
IOleClientSite_Release
(
&
This
->
clientSite
->
IOleClientSite_iface
);
LIST_FOR_EACH_ENTRY
(
txtRge
,
&
This
->
rangelist
,
ITextRangeImpl
,
entry
)
txtRge
->
reOle
=
NULL
;
heap_free
(
This
);
}
return
ref
;
}
...
...
@@ -2365,21 +2376,6 @@ LRESULT CreateIRichEditOle(IUnknown *outer_unk, ME_TextEditor *editor, LPVOID *p
return
1
;
}
void
DestroyIRichEditOle
(
IRichEditOle
*
iface
)
{
IRichEditOleImpl
*
This
=
impl_from_IRichEditOle
(
iface
);
ITextRangeImpl
*
txtRge
;
TRACE
(
"Destroying %p
\n
"
,
This
);
This
->
txtSel
->
reOle
=
NULL
;
This
->
editor
->
reOle
=
NULL
;
ITextSelection_Release
(
&
This
->
txtSel
->
ITextSelection_iface
);
IOleClientSite_Release
(
&
This
->
clientSite
->
IOleClientSite_iface
);
LIST_FOR_EACH_ENTRY
(
txtRge
,
&
This
->
rangelist
,
ITextRangeImpl
,
entry
)
txtRge
->
reOle
=
NULL
;
heap_free
(
This
);
}
static
void
convert_sizel
(
const
ME_Context
*
c
,
const
SIZEL
*
szl
,
SIZE
*
sz
)
{
/* sizel is in .01 millimeters, sz in pixels */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment