Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Dorota Czaplejewicz
gtk
Commits
b8fa675a
Commit
b8fa675a
authored
Dec 30, 2009
by
Kristian Rietveld
Committed by
Tristan Van Berkom
Apr 03, 2010
Browse files
Release view after setting it as contentView
Fixes GdkQuartzView being leaked.
parent
969ff4c8
Changes
1
Hide whitespace changes
Inline
Side-by-side
gdk/quartz/gdkwindow-quartz.c
View file @
b8fa675a
...
...
@@ -1058,6 +1058,7 @@ _gdk_window_impl_new (GdkWindow *window,
impl
->
view
=
[[
GdkQuartzView
alloc
]
initWithFrame
:
content_rect
];
[
impl
->
view
setGdkWindow
:
window
];
[
impl
->
toplevel
setContentView
:
impl
->
view
];
[
impl
->
view
release
];
}
break
;
...
...
@@ -1079,6 +1080,7 @@ _gdk_window_impl_new (GdkWindow *window,
/* GdkWindows should be hidden by default */
[
impl
->
view
setHidden
:
YES
];
[
parent_impl
->
view
addSubview
:
impl
->
view
];
[
impl
->
view
release
];
}
}
break
;
...
...
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