diff options
| author | Martin Owens <doctormo@gmail.com> | 2017-06-16 11:18:39 +0000 |
|---|---|---|
| committer | Martin Owens <doctormo@gmail.com> | 2017-06-16 11:18:39 +0000 |
| commit | 26b5429dbb1921b2fc1efc89f22268b85afd9163 (patch) | |
| tree | 76f9b8abdf5072aeb8cc9dbdbced2c989db55a30 /src/widgets/toolbox.cpp | |
| parent | Make sure CMake can find the new ui files (diff) | |
| download | inkscape-26b5429dbb1921b2fc1efc89f22268b85afd9163.tar.gz inkscape-26b5429dbb1921b2fc1efc89f22268b85afd9163.zip | |
Fix err leaking and cmake
Diffstat (limited to 'src/widgets/toolbox.cpp')
| -rw-r--r-- | src/widgets/toolbox.cpp | 2 |
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; } |
