1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-29 05:38:00 +00:00
freebsd-ports/x11-toolkits/vte/files/patch-06_remove_doublefree
Jeremy Messenger ca39bbd401 Took all patches from the Debian, because current VTE lacks maintain and
gnome-terminal development has stagnated. Almost all patches are in GNOME
bugzilla for the weeks and months. Bump the PORTREVISION.

-patch-01_vtemodule:
	Fix build with the python module

-patch-03_cursor_position:
	Added a patch for supporting some save/restore cursor position console
	sequences

-patch-04_dsp_non_alias:
	FcConfigSubstitute in place of _vte_fc_defaults_from_gtk to get
	antialias and hinting value

	http://bugs.gnome.org/show_bug.cgi?id=142640

-patch-05_performance_boost:
	Balanced performance improvement

	http://bugs.gnome.org/show_bug.cgi?id=143914

	--

	This is very amazing improvement. Here's benchmark of it to show that
	gnome-terminal isn't far from aterm and xterm anymore.

	Old benchmark:
	=======================================
	$ time ls -lR /usr/ports

	aterm: 7.99 real1.31 user2.75 sys
	xterm: 11.04 real1.34 user2.47 sys
	gnome: 41.76 real1.12 user2.45 sys (ouch....)
	=======================================

	New benchmark:
	==============================================
	$ time ls -lR /usr/ports

	aterm: 7.28 real 1.20 user 2.41 sys
	xterm: 9.85 real 0.91 user 2.08 sys
	gnome: 10.41 real 0.86 user 2.02 sys
	==============================================

	Big deal!

-patch-06_remove_doublefree:
	Resolve double free problem

	http://bugs.gnome.org/show_bug.cgi?id=161337

-patch-07_set_backspace_to_utf8:
	Set backspace behavior to utf8 (depends on utf8 locale)

	http://bugs.gnome.org/show_bug.cgi?id=158200

-patch-08_multiscreen_safe:
	Make vte multi-screen safe

	http://bugs.gnome.org/show_bug.cgi?id=160782

-patch-09_redraw_vte_screen:
	Redraw vte screen with correct background color

	http://bugs.gnome.org/show_bug.cgi?id=125364

-patch-10_hide_pageup_behavior:
	Hide manifestation of PageUp behavior with less

	http://bugs.gnome.org/show_bug.cgi?id=115149

<marcus>:	I for one welcome our new vte patch overlord.  I think all of
		them would make good additions.
<ahze>:		I am all for the performance_boost patch! gnome-terminal
		kinda sucks when lines are going by fast.
<mezz>:		showing the before and after benchmark.
<marcus>:	Commit! Commit! :-)

Reviewed by:	marcus and ahze
2005-01-19 20:29:21 +00:00

39 lines
1.1 KiB
Plaintext

diff -r -u src.orig/table.c src/table.c
--- src.orig/table.c 2003-05-28 21:50:47 -0700
+++ src/table.c 2004-12-19 18:52:35 -0800
@@ -709,7 +709,6 @@
if (G_VALUE_HOLDS_POINTER(value)) {
printf("\"%ls\"",
(wchar_t*) g_value_get_pointer(value));
- g_free(g_value_get_pointer(value));
}
}
printf(")");
diff -r -u src.orig/trie.c src/trie.c
--- src.orig/trie.c 2003-09-11 13:45:03 -0700
+++ src/trie.c 2004-12-19 18:52:35 -0800
@@ -648,9 +648,12 @@
/* 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 @@
if (ptr != NULL) {
g_free(ptr);
}
+ g_value_set_pointer(value, NULL);
}
}
_vte_matcher_free_params_array(valuearray);