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
417c1047
Commit
417c1047
authored
Apr 08, 2006
by
Jacek Caban
Committed by
Alexandre Julliard
Apr 10, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Fix ref counting.
- Fix ref counting. - Use This->window instead of QI in NSContainer_Release.
parent
f31b4e03
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
14 deletions
+8
-14
nsembed.c
dlls/mshtml/nsembed.c
+6
-12
nsio.c
dlls/mshtml/nsio.c
+2
-2
No files found.
dlls/mshtml/nsembed.c
View file @
417c1047
...
...
@@ -1115,6 +1115,7 @@ static nsresult NSAPI nsSupportsWeakReference_GetWeakReference(nsISupportsWeakRe
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
_retval
);
nsIWeakReference_AddRef
(
NSWEAKREF
(
This
));
*
_retval
=
NSWEAKREF
(
This
);
return
NS_OK
;
}
...
...
@@ -1230,23 +1231,13 @@ NSContainer *NSContainer_Create(HTMLDocument *doc, NSContainer *parent)
void
NSContainer_Release
(
NSContainer
*
This
)
{
nsIBaseWindow
*
base_window
;
nsresult
nsres
;
TRACE
(
"(%p)
\n
"
,
This
);
ShowWindow
(
This
->
hwnd
,
SW_HIDE
);
SetParent
(
This
->
hwnd
,
NULL
);
nsres
=
nsIWebBrowser_QueryInterface
(
This
->
webbrowser
,
&
IID_nsIBaseWindow
,
(
void
**
)
&
base_window
);
if
(
NS_SUCCEEDED
(
nsres
))
{
nsIBaseWindow_SetVisibility
(
base_window
,
FALSE
);
nsIBaseWindow_Destroy
(
base_window
);
nsIBaseWindow_Release
(
base_window
);
}
else
{
ERR
(
"Could not get nsIBaseWindow interface: %08lx
\n
"
,
nsres
);
}
nsIBaseWindow_SetVisibility
(
This
->
window
,
FALSE
);
nsIBaseWindow_Destroy
(
This
->
window
);
nsIWebBrowser_SetContainerWindow
(
This
->
webbrowser
,
NULL
);
...
...
@@ -1259,6 +1250,9 @@ void NSContainer_Release(NSContainer *This)
nsIBaseWindow_Release
(
This
->
window
);
This
->
window
=
NULL
;
nsIWebBrowserFocus_Release
(
This
->
focus
);
This
->
focus
=
NULL
;
if
(
This
->
stream
)
{
nsIWebBrowserStream_Release
(
This
->
stream
);
This
->
stream
=
NULL
;
...
...
dlls/mshtml/nsio.c
View file @
417c1047
...
...
@@ -131,14 +131,13 @@ static BOOL handle_uri(NSContainer *container, nsChannel *channel, LPCWSTR uri)
hres
=
IServiceProvider_QueryService
(
service_provider
,
&
IID_IHlinkFrame
,
&
IID_IHlinkFrame
,
(
void
**
)
&
hlink_frame
);
IServiceProvider_Release
(
service_provider
);
if
(
SUCCEEDED
(
hres
))
{
hlink_frame_navigate
(
doc
,
hlink_frame
,
uri
,
channel
->
post_data_stream
,
hlnf
);
IHlinkFrame_Release
(
hlink_frame
);
return
FALSE
;
}
IServiceProvider_Release
(
service_provider
);
}
return
TRUE
;
...
...
@@ -618,6 +617,7 @@ static nsresult NSAPI nsChannel_AsyncOpen(nsIHttpChannel *iface, nsIStreamListen
nsres
=
nsIUploadChannel_SetUploadStream
(
upload_channel
,
This
->
post_data_stream
,
&
empty_string
,
-
1
);
nsIUploadChannel_Release
(
upload_channel
);
if
(
NS_FAILED
(
nsres
))
WARN
(
"SetUploadStream failed: %08lx
\n
"
,
nsres
);
...
...
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