Commit 60207c37 authored by Hidetoshi Tajima's avatar Hidetoshi Tajima
Browse files

Fix #99593: Fix a memory leak when XmbLookupString returns XBufferOverflow

	* modules/input/gtkimcontextxim.c
	(gtk_im_context_xim_filter_keypress):
	Fix #99593: Fix a memory leak when XmbLookupString returns
	XBufferOverflow
parent b9c08f5e
Tue Nov 26 13:07:56 2002 HideToshi Tajima <hidetoshi.tajima@sun.com>
* modules/input/gtkimcontextxim.c
(gtk_im_context_xim_filter_keypress):
Fix #99593: Fix a memory leak when XmbLookupString returns
XBufferOverflow
2002-11-26 Daniel Elstner <daniel.elstner@gmx.net>
* gtk/gtktoolbar.c (elide_underscores): Fix nasty typo (#99653):
......
Tue Nov 26 13:07:56 2002 HideToshi Tajima <hidetoshi.tajima@sun.com>
* modules/input/gtkimcontextxim.c
(gtk_im_context_xim_filter_keypress):
Fix #99593: Fix a memory leak when XmbLookupString returns
XBufferOverflow
2002-11-26 Daniel Elstner <daniel.elstner@gmx.net>
* gtk/gtktoolbar.c (elide_underscores): Fix nasty typo (#99653):
......
Tue Nov 26 13:07:56 2002 HideToshi Tajima <hidetoshi.tajima@sun.com>
* modules/input/gtkimcontextxim.c
(gtk_im_context_xim_filter_keypress):
Fix #99593: Fix a memory leak when XmbLookupString returns
XBufferOverflow
2002-11-26 Daniel Elstner <daniel.elstner@gmx.net>
* gtk/gtktoolbar.c (elide_underscores): Fix nasty typo (#99653):
......
Tue Nov 26 13:07:56 2002 HideToshi Tajima <hidetoshi.tajima@sun.com>
* modules/input/gtkimcontextxim.c
(gtk_im_context_xim_filter_keypress):
Fix #99593: Fix a memory leak when XmbLookupString returns
XBufferOverflow
2002-11-26 Daniel Elstner <daniel.elstner@gmx.net>
* gtk/gtktoolbar.c (elide_underscores): Fix nasty typo (#99653):
......
Tue Nov 26 13:07:56 2002 HideToshi Tajima <hidetoshi.tajima@sun.com>
* modules/input/gtkimcontextxim.c
(gtk_im_context_xim_filter_keypress):
Fix #99593: Fix a memory leak when XmbLookupString returns
XBufferOverflow
2002-11-26 Daniel Elstner <daniel.elstner@gmx.net>
* gtk/gtktoolbar.c (elide_underscores): Fix nasty typo (#99653):
......
Tue Nov 26 13:07:56 2002 HideToshi Tajima <hidetoshi.tajima@sun.com>
* modules/input/gtkimcontextxim.c
(gtk_im_context_xim_filter_keypress):
Fix #99593: Fix a memory leak when XmbLookupString returns
XBufferOverflow
2002-11-26 Daniel Elstner <daniel.elstner@gmx.net>
* gtk/gtktoolbar.c (elide_underscores): Fix nasty typo (#99653):
......
......@@ -560,6 +560,8 @@ gtk_im_context_xim_filter_keypress (GtkIMContext *context,
if (status == XBufferOverflow)
{
buffer_size = num_bytes;
if (buffer != static_buffer)
g_free (buffer);
buffer = g_malloc (num_bytes + 1);
goto again;
}
......@@ -590,6 +592,9 @@ gtk_im_context_xim_filter_keypress (GtkIMContext *context,
}
}
if (buffer != static_buffer)
g_free (buffer);
return result;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment