diff options
Diffstat (limited to 'src/ui/widget/combo-box-entry-tool-item.cpp')
| -rw-r--r-- | src/ui/widget/combo-box-entry-tool-item.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/ui/widget/combo-box-entry-tool-item.cpp b/src/ui/widget/combo-box-entry-tool-item.cpp index f3786c6f6..11dd8459d 100644 --- a/src/ui/widget/combo-box-entry-tool-item.cpp +++ b/src/ui/widget/combo-box-entry-tool-item.cpp @@ -475,6 +475,7 @@ ComboBoxEntryToolItem::get_active_row_from_text(ComboBoxEntryToolItem *action, // Case sensitive compare if( strcmp( target_text, text ) == 0 ){ found = true; + g_free(text); break; } } else { @@ -486,9 +487,11 @@ ComboBoxEntryToolItem::get_active_row_from_text(ComboBoxEntryToolItem *action, g_free( target_text_casefolded ); if( equal ) { found = true; + g_free(text); break; } } + g_free(text); } ++row; |
