applied patch from Tomas Mraz to fix a double free. Closes bug #161337.

* src/trie.c: applied patch from Tomas Mraz to fix a double
  free. Closes bug #161337.
parent 154c3317
2006-01-30 Guilherme de S. Pastore <gpastore@gnome.org>
* src/trie.c: applied patch from Tomas Mraz to fix a double
free. Closes bug #161337.
2006-01-30 Erdal Ronahi <erdal.ronahi@gmail.com>
* configure.in: added ku (Kurdish) to ALL_LINGUAS
......
......@@ -648,9 +648,12 @@ _vte_trie_matchx(struct _vte_trie *trie, const gunichar *pattern, size_t length,
/* We're done searching. Copy out any parameters we picked up. */
if (bestarray != NULL) {
for (i = 0; i < bestarray->n_values; i++) {
g_value_array_append(array,
g_value_array_get_nth(bestarray,
i));
GValue *value = g_value_array_get_nth(bestarray, i);
g_value_array_append(array, value);
if (G_VALUE_HOLDS_POINTER(value)) {
g_value_set_pointer(value, NULL);
}
}
_vte_matcher_free_params_array(bestarray);
}
......@@ -704,6 +707,7 @@ _vte_trie_match(struct _vte_trie *trie, const gunichar *pattern, size_t length,
if (ptr != NULL) {
g_free(ptr);
}
g_value_set_pointer(value, NULL);
}
}
_vte_matcher_free_params_array(valuearray);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment