Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
d16c0dc6
Commit
d16c0dc6
authored
Feb 14, 2006
by
Robert Shearman
Committed by
Alexandre Julliard
Feb 14, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
oleaut32: Free connection point on destruction of the picture object.
Handle failure of CreateConnectionPoint on construction.
parent
1ce38682
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
olepicture.c
dlls/oleaut32/olepicture.c
+9
-0
No files found.
dlls/oleaut32/olepicture.c
View file @
d16c0dc6
...
@@ -279,7 +279,13 @@ static OLEPictureImpl* OLEPictureImpl_Construct(LPPICTDESC pictDesc, BOOL fOwn)
...
@@ -279,7 +279,13 @@ static OLEPictureImpl* OLEPictureImpl_Construct(LPPICTDESC pictDesc, BOOL fOwn)
newObject
->
lpvtblIPersistStream
=
&
OLEPictureImpl_IPersistStream_VTable
;
newObject
->
lpvtblIPersistStream
=
&
OLEPictureImpl_IPersistStream_VTable
;
newObject
->
lpvtblIConnectionPointContainer
=
&
OLEPictureImpl_IConnectionPointContainer_VTable
;
newObject
->
lpvtblIConnectionPointContainer
=
&
OLEPictureImpl_IConnectionPointContainer_VTable
;
newObject
->
pCP
=
NULL
;
CreateConnectionPoint
((
IUnknown
*
)
newObject
,
&
IID_IPropertyNotifySink
,
&
newObject
->
pCP
);
CreateConnectionPoint
((
IUnknown
*
)
newObject
,
&
IID_IPropertyNotifySink
,
&
newObject
->
pCP
);
if
(
!
newObject
->
pCP
)
{
HeapFree
(
GetProcessHeap
(),
0
,
newObject
);
return
NULL
;
}
/*
/*
* Start with one reference count. The caller of this function
* Start with one reference count. The caller of this function
...
@@ -349,6 +355,9 @@ static void OLEPictureImpl_Destroy(OLEPictureImpl* Obj)
...
@@ -349,6 +355,9 @@ static void OLEPictureImpl_Destroy(OLEPictureImpl* Obj)
{
{
TRACE
(
"(%p)
\n
"
,
Obj
);
TRACE
(
"(%p)
\n
"
,
Obj
);
if
(
Obj
->
pCP
)
IConnectionPoint_Release
(
Obj
->
pCP
);
if
(
Obj
->
fOwn
)
{
/* We need to destroy the picture */
if
(
Obj
->
fOwn
)
{
/* We need to destroy the picture */
switch
(
Obj
->
desc
.
picType
)
{
switch
(
Obj
->
desc
.
picType
)
{
case
PICTYPE_BITMAP
:
case
PICTYPE_BITMAP
:
...
...
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