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
fdc130f7
Commit
fdc130f7
authored
Jan 09, 2006
by
Jacek Caban
Committed by
Alexandre Julliard
Jan 09, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
urlmon: Fix ref counting.
parent
99306db9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
1 deletion
+11
-1
binding.c
dlls/urlmon/binding.c
+11
-1
No files found.
dlls/urlmon/binding.c
View file @
fdc130f7
...
...
@@ -194,6 +194,8 @@ static ULONG WINAPI ProtocolStream_Release(IStream *iface)
if
(
!
ref
)
{
IInternetProtocol_Release
(
This
->
protocol
);
HeapFree
(
GetProcessHeap
(),
0
,
This
);
URLMON_UnlockModule
();
}
return
ref
;
...
...
@@ -345,6 +347,8 @@ static ProtocolStream *create_stream(IInternetProtocol *protocol)
IInternetProtocol_AddRef
(
protocol
);
ret
->
protocol
=
protocol
;
URLMON_LockModule
();
return
ret
;
}
...
...
@@ -380,8 +384,10 @@ static HRESULT WINAPI Binding_QueryInterface(IBinding *iface, REFIID riid, void
*
ppv
=
SERVPROV
(
This
);
}
if
(
*
ppv
)
if
(
*
ppv
)
{
IBinding_AddRef
(
BINDING
(
This
));
return
S_OK
;
}
WARN
(
"Unsupported interface %s
\n
"
,
debugstr_guid
(
riid
));
return
E_NOINTERFACE
;
...
...
@@ -419,6 +425,8 @@ static ULONG WINAPI Binding_Release(IBinding *iface)
HeapFree
(
GetProcessHeap
(),
0
,
This
->
url
);
HeapFree
(
GetProcessHeap
(),
0
,
This
);
URLMON_UnlockModule
();
}
return
ref
;
...
...
@@ -809,6 +817,8 @@ static HRESULT Binding_Create(LPCWSTR url, IBindCtx *pbc, REFIID riid, Binding *
return
E_NOTIMPL
;
}
URLMON_LockModule
();
ret
=
HeapAlloc
(
GetProcessHeap
(),
0
,
sizeof
(
Binding
));
ret
->
lpBindingVtbl
=
&
BindingVtbl
;
...
...
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