summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorColin Walters <walters@src.gnome.org>2008-08-06 02:51:05 +0000
committerColin Walters <walters@src.gnome.org>2008-08-06 02:51:05 +0000
commit87b01446c7621be92a96b91d2123b38ce3df7249 (patch)
tree2b448548c3f22e376216dcb70c87b96e2f69d0c2
parent78bec866b86a315c8c7eb78eea9e0191dba5dc9c (diff)
downloadgobject-introspection-87b01446c7621be92a96b91d2123b38ce3df7249.tar.gz
Be sure we return the ref'd node
svn path=/branches/gir-compiler/; revision=301
-rw-r--r--giscanner/sourcescanner.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/giscanner/sourcescanner.c b/giscanner/sourcescanner.c
index 0087f60d..34cb57f4 100644
--- a/giscanner/sourcescanner.c
+++ b/giscanner/sourcescanner.c
@@ -44,11 +44,14 @@ GISourceSymbol *
gi_source_symbol_ref (GISourceSymbol * symbol)
{
symbol->ref_count++;
+ return symbol;
}
void
gi_source_symbol_unref (GISourceSymbol * symbol)
{
+ if (!symbol)
+ return;
symbol->ref_count--;
if (symbol->ref_count == 0)
{