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
4f2db2ae
Commit
4f2db2ae
authored
Apr 21, 2016
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ole32: Fix a couple of reference leaks.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
b045d726
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
6 deletions
+10
-6
stg_prop.c
dlls/ole32/stg_prop.c
+10
-6
No files found.
dlls/ole32/stg_prop.c
View file @
4f2db2ae
...
...
@@ -2063,12 +2063,12 @@ static HRESULT PropertyStorage_BaseConstruct(IStream *stm,
hr
=
PropertyStorage_CreateDictionaries
(
*
pps
);
if
(
FAILED
(
hr
))
{
IStream_Release
(
stm
);
(
*
pps
)
->
cs
.
DebugInfo
->
Spare
[
0
]
=
0
;
DeleteCriticalSection
(
&
(
*
pps
)
->
cs
);
HeapFree
(
GetProcessHeap
(),
0
,
*
pps
);
*
pps
=
NULL
;
}
else
IStream_AddRef
(
stm
);
return
hr
;
}
...
...
@@ -2090,11 +2090,7 @@ static HRESULT PropertyStorage_ConstructFromStream(IStream *stm,
TRACE
(
"PropertyStorage %p constructed
\n
"
,
ps
);
hr
=
S_OK
;
}
else
{
PropertyStorage_DestroyDictionaries
(
ps
);
HeapFree
(
GetProcessHeap
(),
0
,
ps
);
}
else
IPropertyStorage_Release
(
&
ps
->
IPropertyStorage_iface
);
}
return
hr
;
}
...
...
@@ -2222,6 +2218,8 @@ static HRESULT WINAPI IPropertySetStorage_fnCreate(
r
=
PropertyStorage_ConstructEmpty
(
stm
,
rfmtid
,
grfFlags
,
grfMode
,
ppprstg
);
IStream_Release
(
stm
);
end:
TRACE
(
"returning 0x%08x
\n
"
,
r
);
return
r
;
...
...
@@ -2267,6 +2265,8 @@ static HRESULT WINAPI IPropertySetStorage_fnOpen(
r
=
PropertyStorage_ConstructFromStream
(
stm
,
rfmtid
,
grfMode
,
ppprstg
);
IStream_Release
(
stm
);
end:
TRACE
(
"returning 0x%08x
\n
"
,
r
);
return
r
;
...
...
@@ -2804,6 +2804,8 @@ HRESULT WINAPI StgCreatePropStg(IUnknown *unk, REFFMTID fmt, const CLSID *clsid,
r
=
PropertyStorage_ConstructEmpty
(
stm
,
fmt
,
flags
,
STGM_CREATE
|
STGM_READWRITE
|
STGM_SHARE_EXCLUSIVE
,
prop_stg
);
IStream_Release
(
stm
);
}
end:
...
...
@@ -2847,6 +2849,8 @@ HRESULT WINAPI StgOpenPropStg(IUnknown *unk, REFFMTID fmt, DWORD flags,
r
=
PropertyStorage_ConstructFromStream
(
stm
,
fmt
,
STGM_READWRITE
|
STGM_SHARE_EXCLUSIVE
,
prop_stg
);
IStream_Release
(
stm
);
}
end:
...
...
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