[test/unicode] Fix double-free
Caught by "make check-valgrind".
This commit is contained in:
parent
28b1bac541
commit
0e482ec6ba
|
@ -102,7 +102,7 @@ valgrind_verbose = $(valgrind_verbose_$(V))
|
||||||
valgrind_verbose_ = $(valgrind_verbose_$(AM_DEFAULT_VERBOSITY))
|
valgrind_verbose_ = $(valgrind_verbose_$(AM_DEFAULT_VERBOSITY))
|
||||||
valgrind_verbose_0 = | \
|
valgrind_verbose_0 = | \
|
||||||
grep '\(^[^=]\|ERROR SUMMARY\|definitely lost\|indirectly lost\)' | grep -v ': 0'
|
grep '\(^[^=]\|ERROR SUMMARY\|definitely lost\|indirectly lost\)' | grep -v ': 0'
|
||||||
|
# TODO: The following check does not fail if valgrind finds error. It should.
|
||||||
check-valgrind:
|
check-valgrind:
|
||||||
$(AM_V_at)$(MAKE) $(AM_MAKEFLGS) check-tool TOOL="valgrind $(VALGRIND_FLAGS)" \
|
$(AM_V_at)$(MAKE) $(AM_MAKEFLGS) check-tool TOOL="valgrind $(VALGRIND_FLAGS)" \
|
||||||
2>&1 | tee valgrind-log $(valgrind_verbose)
|
2>&1 | tee valgrind-log $(valgrind_verbose)
|
||||||
|
|
|
@ -633,8 +633,6 @@ test_unicode_setters (void)
|
||||||
g_assert (data[0].freed && !data[1].freed);
|
g_assert (data[0].freed && !data[1].freed);
|
||||||
hb_unicode_funcs_destroy (uf);
|
hb_unicode_funcs_destroy (uf);
|
||||||
g_assert (data[0].freed && !data[1].freed);
|
g_assert (data[0].freed && !data[1].freed);
|
||||||
|
|
||||||
hb_unicode_funcs_destroy (uf);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue