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
commit5d6a09f71b2c035276ae50a799aea10ed9968717 (patch)
treeeeb64902eee0bd5e89fb0514ec64c416c1e6438c /mixgtk
parent7d8067fe0b0c8acb616d609a73758a4664deed89 (diff)
downloadmdk-5d6a09f71b2c035276ae50a799aea10ed9968717.tar.gz
mdk-5d6a09f71b2c035276ae50a799aea10ed9968717.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);
}
}