1
0
Fork 0
mirror of git://git.code.sf.net/p/cdesktopenv/code synced 2025-03-09 15:50:02 +00:00

Fixed dtpad server crash when closing editor window associated with primary document

This commit is contained in:
alx 2013-04-02 22:44:14 +02:00 committed by Jon Trulson
parent e8cb780125
commit 86e5dc1f10

View file

@ -633,6 +633,11 @@ CreateFirstPad(
initialServerResources = pPad->xrdb; initialServerResources = pPad->xrdb;
initialServerResources.server = False; /* so window will be mapped */ initialServerResources.server = False; /* so window will be mapped */
initialServerGeometry = pPad->geometry; initialServerGeometry = pPad->geometry;
if(pPad->xrdb.workspaceList)
pPad->xrdb.workspaceList = strdup(pPad->xrdb.workspaceList);
if(pPad->xrdb.session)
pPad->xrdb.session = strdup(pPad->xrdb.session);
pPad->geometry = strdup(pPad->geometry);
} }
/* Set some initial Editor instance values */ /* Set some initial Editor instance values */
@ -1677,7 +1682,6 @@ RestoreInitialServerResources(
XtFree(pPad->geometry ); XtFree(pPad->geometry );
pPad->xrdb = initialServerResources; pPad->xrdb = initialServerResources;
pPad->geometry = initialServerGeometry;
/* -----> duplicate resource strings */ /* -----> duplicate resource strings */
if (initialServerResources.workspaceList != (char *)NULL) if (initialServerResources.workspaceList != (char *)NULL)