diff --git a/plugins/excel/libole2/ChangeLog b/plugins/excel/libole2/ChangeLog index 22ae07a7299937f68ed551ba40499c4cbfb292fe..bca0cc13ac25c5ab672f43c3aad5e068bbd3bbb4 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 678657296ec85bdb668e2d7b0e1734d11ed81b44..af012bd73ac226e6d139bd3fe9406e4272ab1cd7 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);