I was getting a gnucash crash, so I ran it under electric-fence. It
turned up two problems:
Index: FileBox.c
===================================================================
RCS file: /home/cvs/cvsroot/xacc/src/motif/FileBox.c,v
retrieving revision 1.10
diff -u -r1.10 FileBox.c
--- FileBox.c 1999/01/20 06:02:04 1.10
+++ FileBox.c 1999/03/18 06:34:51
@@ -113,7 +113,7 @@
/* XmNpathMode, XmPATH_MODE_FULL, */
NULL );
XmStringFree( dialogname );
- XmStringFree( filterpattern );
+ /* XmStringFree( filterpattern ); --electric fence flagged as error */
/* initial directory is same as previous directory */
if (previous_path) {
@@ -122,7 +122,7 @@
XtVaSetValues( dialog,
XmNdirectory, dirpath,
NULL );
- XmStringFree( dirpath );
+ /* XmStringFree( dirpath ); --electric fence flagged as error */
}
Now, both of these XmString's were allocated with
XmStringCreateSimple() in the same function, fileBox(), and passed as
args to XtVaSetValues().
Does anyone know if XtVaSetValues() assumes ownership of the XmStrings
it is given?
I'm running lesstif 0.86.
--
Matt
----- %< -------------------------------------------- >% ------
The GnuCash / X-Accountant Mailing List
To unsubscribe, send mail to [EMAIL PROTECTED] and
put "unsubscribe gnucash-devel [EMAIL PROTECTED]" in the body