From 81cbeb1e4a5ea27c20e98369a5a3455e2aa85b8b Mon Sep 17 00:00:00 2001 From: Michael Meeks Date: Sun, 19 Sep 1999 23:53:34 +0000 Subject: [PATCH] fix stupid fatal bug. --- plugins/excel/libole2/ChangeLog | 4 ++++ plugins/excel/libole2/ms-ole.c | 6 +++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/plugins/excel/libole2/ChangeLog b/plugins/excel/libole2/ChangeLog index 22ae07a72..bca0cc13a 100644 --- a/plugins/excel/libole2/ChangeLog +++ b/plugins/excel/libole2/ChangeLog @@ -1,3 +1,7 @@ +1999-09-20 Michael Meeks + + * ms-ole.c (ms_ole_destroy): Paper bag error. + 1999-09-19 Michael Meeks * Makefile.am: Killed storage. diff --git a/plugins/excel/libole2/ms-ole.c b/plugins/excel/libole2/ms-ole.c index 678657296..af012bd73 100644 --- a/plugins/excel/libole2/ms-ole.c +++ b/plugins/excel/libole2/ms-ole.c @@ -1403,10 +1403,10 @@ ms_ole_destroy (MsOle **ptr) #if OLE_DEBUG > 0 printf ("FIXME: should truncate to remove unused blocks\n"); #endif - if (f->ref_count != 0) - g_warning ("Unclosed files exist on this OLE stream"); - if (f) { + if (f->ref_count != 0) + g_warning ("Unclosed files exist on this OLE stream"); + if (f->dirty) ms_ole_cleanup (f); -- GitLab