Move the call to g_free (cursor_font) outside of the conditional so it

2005-08-24  Kjartan Maraas  <kmaraas@gnome.org>

	* gnome-mouse-properties.c: (cursor_changed): Move the call to
	g_free (cursor_font) outside of the conditional so it gets free'd
	in both cases.
This commit is contained in:
Kjartan Maraas 2005-08-24 17:16:58 +00:00 committed by Kjartan Maraas
parent 4307dfb624
commit 4583778397
2 changed files with 7 additions and 1 deletions

View file

@ -1,3 +1,9 @@
2005-08-24 Kjartan Maraas <kmaraas@gnome.org>
* gnome-mouse-properties.c: (cursor_changed): Move the call to
g_free (cursor_font) outside of the conditional so it gets free'd
in both cases.
2005-08-01 Sebastien Bacher <seb128@debian.org> 2005-08-01 Sebastien Bacher <seb128@debian.org>
* gnome-mouse-properties.c: (cursor_theme_changed): no need to allocate * gnome-mouse-properties.c: (cursor_theme_changed): no need to allocate

View file

@ -587,8 +587,8 @@ cursor_changed (GtkTreeSelection *selection,
#else #else
gconf_client_set_string (client, gconf_client_set_string (client,
CURSOR_FONT_KEY, cursor_font, NULL); CURSOR_FONT_KEY, cursor_font, NULL);
g_free (cursor_font);
#endif #endif
g_free (cursor_font);
} else { } else {
#ifdef HAVE_XCURSOR #ifdef HAVE_XCURSOR
gconf_client_unset (client, gconf_client_unset (client,