summaryrefslogtreecommitdiffhomepage
path: root/mixgtk
diff options
context:
space:
mode:
authorJose Antonio Ortega Ruiz <jao@gnu.org>2004-07-10 23:34:25 +0000
committerJose Antonio Ortega Ruiz <jao@gnu.org>2004-07-10 23:34:25 +0000
commit0534ad9032d1b9a3f97c0195a2ec84d7809febda (patch)
treea3e070e44d32bec03263bc9ccea93597435eba7f /mixgtk
parenta60cd182fb057d9f56d211abb30b03a2ed85038a (diff)
downloadmdk-0534ad9032d1b9a3f97c0195a2ec84d7809febda.tar.gz
mdk-0534ad9032d1b9a3f97c0195a2ec84d7809febda.tar.bz2
oops, dangling pointer.
Diffstat (limited to 'mixgtk')
-rw-r--r--mixgtk/mixgtk_cmd_dispatcher.c4
1 files changed, 2 insertions, 2 deletions
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);
}
}