forked from AuroraMiddleware/gtk
Release view after setting it as contentView
Fixes GdkQuartzView being leaked.
This commit is contained in:
parent
255c2739e2
commit
0912a113dd
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user