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

This commit is contained in:
Karl Tomlinson 2013-02-04 17:50:21 +13:00
parent 6eda84a60d
commit 4ba6f5344d

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