projects
/
platform
/
upstream
/
glib.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
88a1e6c
)
[tests/gvariant] Handle flavored_free(NULL), since flavored_malloc can return NULL
author
Colin Walters
<walters@verbum.org>
Wed, 26 May 2010 19:59:36 +0000
(15:59 -0400)
committer
Colin Walters
<walters@verbum.org>
Wed, 26 May 2010 19:59:36 +0000
(15:59 -0400)
glib/tests/gvariant.c
patch
|
blob
|
history
diff --git
a/glib/tests/gvariant.c
b/glib/tests/gvariant.c
index
1a93607
..
59e50e4
100644
(file)
--- a/
glib/tests/gvariant.c
+++ b/
glib/tests/gvariant.c
@@
-1269,6
+1269,8
@@
static void
flavoured_free (gpointer data,
gsize flavour)
{
+ if (!data)
+ return;
g_free (((gchar *) data) - flavour);
}