mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-23 20:30:15 +00:00
Fix memory leak in case of mismatched property type.
Thu Feb 26 19:48:39 2004 Owen Taylor <otaylor@redhat.com> * gdk/x11/xsettings-client.c (read_settings): Fix memory leak in case of mismatched property type.
This commit is contained in:
parent
d40eda7e87
commit
4528eae1f3
@ -1,3 +1,8 @@
|
||||
Thu Feb 26 19:48:39 2004 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* gdk/x11/xsettings-client.c (read_settings): Fix memory leak
|
||||
in case of mismatched property type.
|
||||
|
||||
Thu Feb 26 18:25:57 2004 Jonathan Blandford <jrb@gnome.org>
|
||||
|
||||
* gtk/gtkfilechooser.h (GtkFileChooserAction): Add two more folder
|
||||
|
@ -1,3 +1,8 @@
|
||||
Thu Feb 26 19:48:39 2004 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* gdk/x11/xsettings-client.c (read_settings): Fix memory leak
|
||||
in case of mismatched property type.
|
||||
|
||||
Thu Feb 26 18:25:57 2004 Jonathan Blandford <jrb@gnome.org>
|
||||
|
||||
* gtk/gtkfilechooser.h (GtkFileChooserAction): Add two more folder
|
||||
|
@ -1,3 +1,8 @@
|
||||
Thu Feb 26 19:48:39 2004 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* gdk/x11/xsettings-client.c (read_settings): Fix memory leak
|
||||
in case of mismatched property type.
|
||||
|
||||
Thu Feb 26 18:25:57 2004 Jonathan Blandford <jrb@gnome.org>
|
||||
|
||||
* gtk/gtkfilechooser.h (GtkFileChooserAction): Add two more folder
|
||||
|
@ -1,3 +1,8 @@
|
||||
Thu Feb 26 19:48:39 2004 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* gdk/x11/xsettings-client.c (read_settings): Fix memory leak
|
||||
in case of mismatched property type.
|
||||
|
||||
Thu Feb 26 18:25:57 2004 Jonathan Blandford <jrb@gnome.org>
|
||||
|
||||
* gtk/gtkfilechooser.h (GtkFileChooserAction): Add two more folder
|
||||
|
@ -1,3 +1,8 @@
|
||||
Thu Feb 26 19:48:39 2004 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* gdk/x11/xsettings-client.c (read_settings): Fix memory leak
|
||||
in case of mismatched property type.
|
||||
|
||||
Thu Feb 26 18:25:57 2004 Jonathan Blandford <jrb@gnome.org>
|
||||
|
||||
* gtk/gtkfilechooser.h (GtkFileChooserAction): Add two more folder
|
||||
|
@ -383,9 +383,13 @@ read_settings (XSettingsClient *client)
|
||||
&type, &format, &n_items, &bytes_after, &data);
|
||||
XSetErrorHandler (old_handler);
|
||||
|
||||
if (result == Success && type == client->xsettings_atom)
|
||||
if (result == Success && type != None)
|
||||
{
|
||||
if (format != 8)
|
||||
if (type != client->xsettings_atom)
|
||||
{
|
||||
fprintf (stderr, "Invalid type for XSETTINGS property");
|
||||
}
|
||||
eles if (format != 8)
|
||||
{
|
||||
fprintf (stderr, "Invalid format for XSETTINGS property %d", format);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user