summaryrefslogtreecommitdiffstats
path: root/src/widgets/toolbox.cpp
diff options
context:
space:
mode:
authorMartin Owens <doctormo@gmail.com>2017-06-16 11:18:39 +0000
committerMartin Owens <doctormo@gmail.com>2017-06-16 11:18:39 +0000
commit26b5429dbb1921b2fc1efc89f22268b85afd9163 (patch)
tree76f9b8abdf5072aeb8cc9dbdbced2c989db55a30 /src/widgets/toolbox.cpp
parentMake sure CMake can find the new ui files (diff)
downloadinkscape-26b5429dbb1921b2fc1efc89f22268b85afd9163.tar.gz
inkscape-26b5429dbb1921b2fc1efc89f22268b85afd9163.zip
Fix err leaking and cmake
Diffstat (limited to 'src/widgets/toolbox.cpp')
-rw-r--r--src/widgets/toolbox.cpp2
1 files changed, 2 insertions, 0 deletions
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;
}