[gnumeric] Shutdown: help the style leak printer out a bit.



commit a87c64c1aa69701e88cbe69cf939d286e91d44e1
Author: Morten Welinder <terra gnome org>
Date:   Mon May 7 19:56:12 2018 -0400

    Shutdown: help the style leak printer out a bit.
    
    Shut down styles before font/color/border so those still make sense
    when the leak printer prints them.

 src/libgnumeric.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/src/libgnumeric.c b/src/libgnumeric.c
index 7b15abe..1437d80 100644
--- a/src/libgnumeric.c
+++ b/src/libgnumeric.c
@@ -373,11 +373,14 @@ gnm_shutdown (void)
        parse_util_shutdown ();
        value_shutdown ();
 
+       // The style leak printer may access font/border/color info so
+       // shut styles down first.
+       gnm_style_shutdown ();
        gnm_font_shutdown ();
        gnm_border_shutdown ();
        gnm_color_shutdown ();
+
        gnm_conf_shutdown ();
-       gnm_style_shutdown ();
 
        _gnm_unregister_resource ();
        libgoffice_shutdown ();


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]