diff options
author | Kristian Rietveld <kris@gtk.org> | 2003-07-11 19:00:25 +0000 |
---|---|---|
committer | Kristian Rietveld <kristian@src.gnome.org> | 2003-07-11 19:00:25 +0000 |
commit | 10d77dd6dae4ab21fc4c2b441e73a403905ab6aa (patch) | |
tree | 726e11c2b3d13334e623ef20cbc2e2fce8fbaa4a /gtk/gtktreemodel.c | |
parent | 65d5d68524e058410c0af5fa406ed0391350e507 (diff) | |
download | gtk+-10d77dd6dae4ab21fc4c2b441e73a403905ab6aa.tar.gz |
make the path != NULL check a silent assert, so it follows the g_free()
Fri Jul 11 20:48:14 2003 Kristian Rietveld <kris@gtk.org>
* gtk/gtktreemodel.c (gtk_tree_path_free): make the path != NULL
check a silent assert, so it follows the g_free() behaviour.
Diffstat (limited to 'gtk/gtktreemodel.c')
-rw-r--r-- | gtk/gtktreemodel.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gtk/gtktreemodel.c b/gtk/gtktreemodel.c index eca14bd0ff..d8a849ca99 100644 --- a/gtk/gtktreemodel.c +++ b/gtk/gtktreemodel.c @@ -397,7 +397,8 @@ gtk_tree_path_get_indices (GtkTreePath *path) void gtk_tree_path_free (GtkTreePath *path) { - g_return_if_fail (path != NULL); + if (!path) + return; g_free (path->indices); g_free (path); |