summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorKjartan Maraas <kmaraas@gnome.org>2008-01-10 20:57:20 +0000
committerKjartan Maraas <kmaraas@src.gnome.org>2008-01-10 20:57:20 +0000
commitdf1a655eee845d4a8f9e6829de0aaa8bfe89e297 (patch)
treedfd18088489924a1e8357af565f8fd055a589392 /examples
parent85ecc380d73e61234a4ae3eb0d23c721e04b585d (diff)
downloadgconf-df1a655eee845d4a8f9e6829de0aaa8bfe89e297.tar.gz
g_free and friends handles NULL just fine. Closes bug #371087 reported by
2008-01-10 Kjartan Maraas <kmaraas@gnome.org> * backends/evoldap-backend.c: (parse_server_info), (destroy_source): * backends/markup-tree.c: (markup_entry_set_value): * backends/xml-dir.c: (create_fs_dir): * backends/xml-entry.c: (entry_destroy), (entry_set_schema_name), (entry_set_mod_user): * examples/simple-view.c: (main): * gconf/gconf-schema.c: (gconf_schema_free), (gconf_schema_copy): * gconf/gconf-sources.c: (gconf_sources_query_value): * gconf/gconf-value.c: (set_string), (gconf_value_free), (gconf_entry_unref), (gconf_entry_set_schema_name): * gconf/gconf.c: (gconf_engine_get_string): g_free and friends handles NULL just fine. Closes bug #371087 reported by Morten Welinder. svn path=/trunk/; revision=2510
Diffstat (limited to 'examples')
-rw-r--r--examples/simple-view.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/examples/simple-view.c b/examples/simple-view.c
index f6c77e93..41822d89 100644
--- a/examples/simple-view.c
+++ b/examples/simple-view.c
@@ -71,8 +71,7 @@ main(int argc, char** argv)
label = gtk_label_new(str ? str : "<unset>");
- if (str)
- g_free(str);
+ g_free(str);
gtk_container_add(GTK_CONTAINER(window), label);