]> git.ipfire.org Git - thirdparty/HylaFAX.git/commitdiff
Faxmail patch - Robert Colquhoun(rjc@trump.net.au)
authorRobert Colquhoun <rjc@trump.net.au>
Sat, 2 Jan 1999 04:36:41 +0000 (04:36 +0000)
committerRobert Colquhoun <rjc@trump.net.au>
Sat, 2 Jan 1999 04:36:41 +0000 (04:36 +0000)
Fixes a segmentation violation(SIGSEGV) on shutdown on glibc2
systems ie recent linux distributions

util/TextFmt.c++

index 710a6fe53ee6d5ebfc3b34b7e0ac790b75eb5175..636add86c0b29fbf9b43f2f38e8b7fb1f566dc45 100644 (file)
@@ -86,6 +86,7 @@ TextFmt::~TextFmt()
     delete fonts;
     if (tf != NULL)
        fclose(tf);
+    tf = NULL;
 }
 
 void
@@ -322,6 +323,7 @@ TextFmt::endFormatting(void)
     if (fclose(tf))
        fatal("%s: Close failure on temporary file: %s",
            (const char*) tempfile, strerror(errno));
+    tf = NULL;
     emitTrailer();
     fflush(output);
     workStarted = FALSE;