No subject
Fri Oct 29 08:20:29 PDT 2010
Dead Code Removed
XtAppErrorMsg will not return
Signed-off-by: walter harms <wharms at bfs.de>
---
src/Display.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/src/Display.c b/src/Display.c
index 4ccf079..f610688 100644
--- a/src/Display.c
+++ b/src/Display.c
@@ -345,7 +345,8 @@ _XtAppInit(
Cardinal param_count = 1;
XtErrorMsg("invalidDisplay","xtInitialize",XtCXtToolkitError,
"Can't open display: %s", ¶m, ¶m_count);
- XtFree((char *) (*app_context_return)->display_name_tried);
+/* XtErrorMsg does not return so we will leak display_name_tried */
+/* XtFree((char *) (*app_context_return)->display_name_tried); */
}
*argv_in_out = saved_argv;
UNLOCK_APP((*app_context_return));
--
1.6.0.2
More information about the xorg-devel
mailing list