2008-02-19 Li Yuan <li.yuan@sun.com>
authorliyuan <liyuan@e2bd861d-eb25-0410-b326-f6ed22b6b98c>
Tue, 19 Feb 2008 10:06:31 +0000 (10:06 +0000)
committerliyuan <liyuan@e2bd861d-eb25-0410-b326-f6ed22b6b98c>
Tue, 19 Feb 2008 10:06:31 +0000 (10:06 +0000)
        Patch from Scott Haeger <scott@bashautomation.com>
        * libspi/collection.c: (impl_freeMatchRule):
        Bug #517250. Clear spimatchrule->_mrp when free match rule.

git-svn-id: http://svn.gnome.org/svn/at-spi/trunk@983 e2bd861d-eb25-0410-b326-f6ed22b6b98c

ChangeLog
libspi/collection.c

index 491d9a4..6e41aad 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2008-02-19  Li Yuan  <li.yuan@sun.com>
+
+       Patch from Scott Haeger <scott@bashautomation.com>
+       * libspi/collection.c: (impl_freeMatchRule):
+       Bug #517250. Clear spimatchrule->_mrp when free match rule.
+
 2008-01-14  Li Yuan  <li.yuan@sun.com>
 
        * NEWS:
index 2886e45..6b95fa9 100644 (file)
@@ -154,14 +154,14 @@ static void impl_freeMatchRule (PortableServer_Servant servant,
      MatchRulePrivate *mrp;  
 
      spimatchrule = SPI_COLLECTION (object);
-     mrp =  spimatchrule->_mrp;
+     mrp = spimatchrule->_mrp;
      
      CORBA_free (mrp->attributes);
      CORBA_free (mrp->roles);
      CORBA_free (mrp->interfaces);
 
      g_free (mrp);
-
+     spimatchrule->_mrp = NULL;
 }