From 40e4ab0ddaaf0a72ef01a4bfb26becbb69050d1d Mon Sep 17 00:00:00 2001 From: Nick Treleaven Date: Wed, 20 Dec 2006 15:43:01 +0000 Subject: [PATCH] Stop Valgrind complaining about a vc->emulation leak. git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1130 ea778897-0a13-0410-b9d1-a72fbfd435f5 --- ChangeLog | 2 ++ src/vte.c | 6 +++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 191f91cb..afa9e414 100644 --- a/ChangeLog +++ b/ChangeLog @@ -5,6 +5,8 @@ * src/treeviews.c, src/ui_utils.c: Fix tag treeview not being freed (because of g_object_ref). Separate recreate_tag_list() from ui_update_tag_list(). + * src/vte.c: + Stop Valgrind complaining about a vc->emulation leak. 2006-12-18 Enrico Tröger diff --git a/src/vte.c b/src/vte.c index 840c72c9..ad246527 100644 --- a/src/vte.c +++ b/src/vte.c @@ -197,12 +197,12 @@ void vte_close(void) { g_free(vf); /* free the vte widget before unloading vte module - * this prevents a segfault on X close window if the message window is hidden - * (patch from Nick Treleaven, thanks) */ + * this prevents a segfault on X close window if the message window is hidden */ gtk_widget_destroy(vc->vte); if (popup_menu_created) gtk_widget_destroy(vc->menu); - g_free(vc->font); g_free(vc->emulation); + g_free(vc->shell); + g_free(vc->font); g_free(vc->colour_back); g_free(vc->colour_fore); g_free(vc);