Fix a memory leak when retrieving atom names. (Michael Meeks, #64508)

Mon Nov 19 11:30:03 2001  Owen Taylor  <otaylor@redhat.com>

	* gdk/x11/gdkproperty-x11.c (get_atom_name): Fix a
	memory leak when retrieving atom names. (Michael Meeks,
	#64508)
This commit is contained in:
Owen Taylor 2001-11-19 16:31:34 +00:00 committed by Owen Taylor
parent ecbfe81b06
commit d2e2773146
8 changed files with 43 additions and 1 deletions

View File

@ -1,3 +1,9 @@
Mon Nov 19 11:30:03 2001 Owen Taylor <otaylor@redhat.com>
* gdk/x11/gdkproperty-x11.c (get_atom_name): Fix a
memory leak when retrieving atom names. (Michael Meeks,
#64508)
2001-11-18 Alex Larsson <alexl@redhat.com>
* gdk/x11/gdkfont-x11.c (gdk_font_from_description):

View File

@ -1,3 +1,9 @@
Mon Nov 19 11:30:03 2001 Owen Taylor <otaylor@redhat.com>
* gdk/x11/gdkproperty-x11.c (get_atom_name): Fix a
memory leak when retrieving atom names. (Michael Meeks,
#64508)
2001-11-18 Alex Larsson <alexl@redhat.com>
* gdk/x11/gdkfont-x11.c (gdk_font_from_description):

View File

@ -1,3 +1,9 @@
Mon Nov 19 11:30:03 2001 Owen Taylor <otaylor@redhat.com>
* gdk/x11/gdkproperty-x11.c (get_atom_name): Fix a
memory leak when retrieving atom names. (Michael Meeks,
#64508)
2001-11-18 Alex Larsson <alexl@redhat.com>
* gdk/x11/gdkfont-x11.c (gdk_font_from_description):

View File

@ -1,3 +1,9 @@
Mon Nov 19 11:30:03 2001 Owen Taylor <otaylor@redhat.com>
* gdk/x11/gdkproperty-x11.c (get_atom_name): Fix a
memory leak when retrieving atom names. (Michael Meeks,
#64508)
2001-11-18 Alex Larsson <alexl@redhat.com>
* gdk/x11/gdkfont-x11.c (gdk_font_from_description):

View File

@ -1,3 +1,9 @@
Mon Nov 19 11:30:03 2001 Owen Taylor <otaylor@redhat.com>
* gdk/x11/gdkproperty-x11.c (get_atom_name): Fix a
memory leak when retrieving atom names. (Michael Meeks,
#64508)
2001-11-18 Alex Larsson <alexl@redhat.com>
* gdk/x11/gdkfont-x11.c (gdk_font_from_description):

View File

@ -1,3 +1,9 @@
Mon Nov 19 11:30:03 2001 Owen Taylor <otaylor@redhat.com>
* gdk/x11/gdkproperty-x11.c (get_atom_name): Fix a
memory leak when retrieving atom names. (Michael Meeks,
#64508)
2001-11-18 Alex Larsson <alexl@redhat.com>
* gdk/x11/gdkfont-x11.c (gdk_font_from_description):

View File

@ -1,3 +1,9 @@
Mon Nov 19 11:30:03 2001 Owen Taylor <otaylor@redhat.com>
* gdk/x11/gdkproperty-x11.c (get_atom_name): Fix a
memory leak when retrieving atom names. (Michael Meeks,
#64508)
2001-11-18 Alex Larsson <alexl@redhat.com>
* gdk/x11/gdkfont-x11.c (gdk_font_from_description):

View File

@ -263,7 +263,7 @@ get_atom_name (GdkAtom atom)
virtual_atom_check_init ();
if (ATOM_TO_INDEX (atom) < virtual_atom_array->len)
return g_strdup (g_ptr_array_index (virtual_atom_array, ATOM_TO_INDEX (atom)));
return g_ptr_array_index (virtual_atom_array, ATOM_TO_INDEX (atom));
else
return NULL;
}