gobject-introspection r301 - branches/gir-compiler/giscanner



Author: walters
Date: Wed Aug  6 02:51:05 2008
New Revision: 301
URL: http://svn.gnome.org/viewvc/gobject-introspection?rev=301&view=rev

Log:
Be sure we return the ref'd node


Modified:
   branches/gir-compiler/giscanner/sourcescanner.c

Modified: branches/gir-compiler/giscanner/sourcescanner.c
==============================================================================
--- branches/gir-compiler/giscanner/sourcescanner.c	(original)
+++ branches/gir-compiler/giscanner/sourcescanner.c	Wed Aug  6 02:51:05 2008
@@ -44,11 +44,14 @@
 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)
     {



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]