b=623380 destroy XtClient child window on unrealize r=stransky

--HG--
extra : rebase_source : 499c3f65e890bc1e327b40936cc2e781e0193251
This commit is contained in:
Karl Tomlinson 2013-02-04 17:50:21 +13:00
parent 6cf98de946
commit bbbddbd3a9

View File

@ -565,6 +565,11 @@ xt_client_create ( XtClient* xtclient ,
void
xt_client_unrealize ( XtClient* xtclient )
{
/* Explicitly destroy the child_widget window because this is actually a
child of the socket window. It is not a child of top_widget's window
when that is destroyed. */
XtUnrealizeWidget(xtclient->child_widget);
#if XlibSpecificationRelease >= 6
XtUnregisterDrawable(xtclient->xtdisplay,
xtclient->top_widget->core.window);