projects
/
oweals
/
cde.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1321d4c
)
dtfile/FileDialog: CID 175220
author
Jon Trulson
<jon@radscan.com>
Thu, 12 Apr 2018 17:45:38 +0000
(11:45 -0600)
committer
Jon Trulson
<jon@radscan.com>
Thu, 12 Apr 2018 17:45:38 +0000
(11:45 -0600)
cde/programs/dtfile/FileDialog.c
patch
|
blob
|
history
diff --git
a/cde/programs/dtfile/FileDialog.c
b/cde/programs/dtfile/FileDialog.c
index a3e472d0729d3f1e665ad876624b40e042bde775..743bfac0b95c93b17079b85598fd115a46803aa1 100644
(file)
--- a/
cde/programs/dtfile/FileDialog.c
+++ b/
cde/programs/dtfile/FileDialog.c
@@
-1953,7
+1953,7
@@
ShowMakeFileDialog(
DialogCallbackStruct * call_struct;
char * tmpStr = NULL, *tempStr = NULL;
- XmString label_string;
+ XmString label_string
= NULL
;
Arg args[20];
int n;
@@
-2044,6
+2044,14
@@
ShowMakeFileDialog(
}
XtFree(tempStr);
+ if (!shell)
+ {
+ /* shouldn't happen, but... */
+ if (label_string)
+ XmStringFree(label_string);
+ return;
+ }
+
/* Set the useAsyncGeo on the shell */
XtSetArg (args[0], XmNuseAsyncGeometry, True);
XtSetValues (XtParent(shell), args, 1);