summaryrefslogtreecommitdiff
path: root/src/gui/panels/strings.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/panels/strings.c')
-rw-r--r--src/gui/panels/strings.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/gui/panels/strings.c b/src/gui/panels/strings.c
index 4828038..a50eeae 100644
--- a/src/gui/panels/strings.c
+++ b/src/gui/panels/strings.c
@@ -26,8 +26,9 @@
#include <assert.h>
-#include <string.h>
#include <inttypes.h>
+#include <malloc.h>
+#include <string.h>
#include "panel-int.h"
@@ -1360,7 +1361,7 @@ static bool is_string_name_matching(const strings_update_data *data, GtkTreeMode
#ifndef NDEBUG
SymbolType type; /* Type associé au symbole */
#endif
- const char *label; /* Etiquette à analyser */
+ char *label; /* Etiquette à analyser */
gtk_tree_model_get(model, iter, STC_SYMBOL, &symbol, -1);
assert(symbol != NULL);
@@ -1377,8 +1378,12 @@ static bool is_string_name_matching(const strings_update_data *data, GtkTreeMode
if (label == NULL)
result = false;
+
else
+ {
result = is_content_matching(data->filter, label, match);
+ free(label);
+ }
g_object_unref(G_OBJECT(symbol));