Release view after setting it as contentView

Fixes GdkQuartzView being leaked.
This commit is contained in:
Kristian Rietveld 2009-12-30 14:14:21 +01:00
parent 255c2739e2
commit 0912a113dd

View File

@ -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;