[ 1587248 ] Segfault w/o Session Manager (e.g. KDE/GNOME ...)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42723 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -304,6 +304,8 @@ static wxString GetSM()
|
|||||||
0 /* mask */, NULL /* callbacks */,
|
0 /* mask */, NULL /* callbacks */,
|
||||||
NULL, &client_id_ret, 0, NULL);
|
NULL, &client_id_ret, 0, NULL);
|
||||||
|
|
||||||
|
if (smc_conn)
|
||||||
|
{
|
||||||
vendor = SmcVendor(smc_conn);
|
vendor = SmcVendor(smc_conn);
|
||||||
wxString ret = wxString::FromAscii( vendor );
|
wxString ret = wxString::FromAscii( vendor );
|
||||||
free(vendor);
|
free(vendor);
|
||||||
@@ -314,6 +316,9 @@ static wxString GetSM()
|
|||||||
XCloseDisplay(dpy);
|
XCloseDisplay(dpy);
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
|
}
|
||||||
|
|
||||||
|
return wxEmptyString;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user