From 0534ad9032d1b9a3f97c0195a2ec84d7809febda Mon Sep 17 00:00:00 2001 From: Jose Antonio Ortega Ruiz Date: Sat, 10 Jul 2004 23:34:25 +0000 Subject: oops, dangling pointer. --- mixgtk/mixgtk_cmd_dispatcher.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'mixgtk') diff --git a/mixgtk/mixgtk_cmd_dispatcher.c b/mixgtk/mixgtk_cmd_dispatcher.c index 6b7517a..18f4600 100644 --- a/mixgtk/mixgtk_cmd_dispatcher.c +++ b/mixgtk/mixgtk_cmd_dispatcher.c @@ -1,7 +1,7 @@ /* -*-c-*- -------------- mixgtk_cmd_dispatcher.c : * Implementation of the functions declared in mixgtk_cmd_dispatcher.h * ------------------------------------------------------------------ - * $Id: mixgtk_cmd_dispatcher.c,v 1.20 2004/07/10 23:14:42 jao Exp $ + * $Id: mixgtk_cmd_dispatcher.c,v 1.21 2004/07/10 23:34:25 jao Exp $ * ------------------------------------------------------------------ * Copyright (C) 2001, 2002, 2004 Free Software Foundation, Inc. * @@ -454,7 +454,6 @@ complete_command_ (void) gtk_text_view_get_buffer (GTK_TEXT_VIEW (dis_data_.log)); gtk_entry_set_text (entry, prefix); - g_free (prefix); if (g_list_length ((GList *)cmds) > 1) { static gchar BUFFER[25]; @@ -479,6 +478,7 @@ complete_command_ (void) gtk_editable_insert_text (GTK_EDITABLE (entry), " ", 1, &pos); } flush_log_ (&dis_data_); + g_free (prefix); } } -- cgit v1.2.3