From 3821d895efa6b20ade67292fd9f6732b695d9fe3 Mon Sep 17 00:00:00 2001 From: Martin Owens Date: Fri, 16 Jun 2017 07:18:39 -0400 Subject: Fix err leaking and cmake --- src/widgets/toolbox.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/widgets/toolbox.cpp') diff --git a/src/widgets/toolbox.cpp b/src/widgets/toolbox.cpp index 671689716..45f81ee81 100644 --- a/src/widgets/toolbox.cpp +++ b/src/widgets/toolbox.cpp @@ -833,6 +833,7 @@ static void setupToolboxCommon( GtkWidget *toolbox, gtk_ui_manager_add_ui_from_file( mgr, filename, &err ); if(err) { g_warning("Failed to load %s: %s", filename, err->message); + g_error_free(err); return; } @@ -976,6 +977,7 @@ void setup_aux_toolbox(GtkWidget *toolbox, SPDesktop *desktop) guint ret = gtk_ui_manager_add_ui_from_file(mgr, filename, &err); if(err) { g_warning("Failed to load aux toolbar %s: %s", filename, err->message); + g_error_free(err); return; } -- cgit v1.2.3