diff options
author | Nalin Dahyabhai <nalin@src.gnome.org> | 2002-07-01 23:19:53 +0000 |
---|---|---|
committer | Nalin Dahyabhai <nalin@src.gnome.org> | 2002-07-01 23:19:53 +0000 |
commit | 361aa5b13aea9c0e8b742ce8bacc038c6765aec6 (patch) | |
tree | 4452507143e81c3c880c0eeeacbb74ff05486564 | |
parent | a27006e993e3fb530809bf37bb1eeebc1ba891f8 (diff) |
Fix memory leak when we get conversion errors.vte_0_4_7
* src/vte.c: Fix memory leak when we get conversion errors.
-rw-r--r-- | src/vte.c | 6 | ||||
-rw-r--r-- | vte.spec | 3 |
2 files changed, 8 insertions, 1 deletions
@@ -5181,6 +5181,7 @@ vte_terminal_process_incoming(gpointer data) } #endif /* Try again. */ + g_free(obufptr); return TRUE; } #ifdef VTE_DEBUG @@ -5193,6 +5194,7 @@ vte_terminal_process_incoming(gpointer data) #endif terminal->pvt->processing = FALSE; terminal->pvt->processing_tag = -1; + g_free(obufptr); return terminal->pvt->processing; } @@ -11156,6 +11158,10 @@ vte_terminal_reset(VteTerminal *terminal, gboolean full, gboolean clear_history) /* Reset the color palette. */ /* vte_terminal_set_default_colors(terminal); */ /* Reset the default attributes. */ + memset(&terminal->pvt->normal_screen.defaults, 0, + sizeof(terminal->pvt->normal_screen.defaults)); + memset(&terminal->pvt->alternate_screen.defaults, 0, + sizeof(terminal->pvt->alternate_screen.defaults)); vte_terminal_set_default_attributes(terminal); /* Reset the encoding. */ vte_terminal_set_encoding(terminal, NULL); @@ -1,5 +1,5 @@ Name: vte -Version: 0.4.6 +Version: 0.4.7 Release: 1 Summary: An experimental terminal emulator. License: LGPL @@ -58,6 +58,7 @@ make install DESTDIR=$RPM_BUILD_ROOT %changelog * Mon Jul 1 2002 Nalin Dahyabhai <nalin@redhat.com> 0.4.6-1 - draw unicode line-drawing characters natively +- recover from encoding errors more gracefully * Tue Jun 25 2002 Nalin Dahyabhai <nalin@redhat.com> 0.4.5-1 - don't append spaces to multicolumn characters when reading the screen's |