[xiph-cvs] cvs commit: vorbis-python/src pyvorbisinfo.c

Andrew Catham Master of Python andrew at xiph.org
Sun Jan 27 21:00:37 PST 2002



andrew      02/01/27 21:00:37

  Modified:    .        ChangeLog
               src      pyvorbisinfo.c
  Log:
  Fix decref problem.

Revision  Changes    Path
1.11      +3 -0      vorbis-python/ChangeLog

Index: ChangeLog
===================================================================
RCS file: /usr/local/cvsroot/vorbis-python/ChangeLog,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -r1.10 -r1.11
--- ChangeLog	2002/01/28 02:52:13	1.10
+++ ChangeLog	2002/01/28 05:00:36	1.11
@@ -1,4 +1,7 @@
 2002-01-27  Andrew H. Chatham <andrew.chatham at duke.edu>
+	* pyvorbisinfo.c (del_comment): Set parent to NULL after decref
+	
+2002-01-27  Andrew H. Chatham <andrew.chatham at duke.edu>
         * test/comment.py: Added
         * pyvorbisinfo.c (del_comment), (find_tag_insensitive): Added. 
                 You can now delete comments.

<p><p>1.7       +1 -0      vorbis-python/src/pyvorbisinfo.c

Index: pyvorbisinfo.c
===================================================================
RCS file: /usr/local/cvsroot/vorbis-python/src/pyvorbisinfo.c,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- pyvorbisinfo.c	2002/01/28 02:52:14	1.6
+++ pyvorbisinfo.c	2002/01/28 05:00:36	1.7
@@ -483,6 +483,7 @@
   /* Get rid of the old comment structure */
   if (self->parent) {
     Py_DECREF(self->parent); /* parent will clear for us */
+    self->parent = NULL;
   } else {
     vorbis_comment_clear(self->vc);
   }

<p><p><p>--- >8 ----
List archives:  http://www.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg/
To unsubscribe from this list, send a message to 'cvs-request at xiph.org'
containing only the word 'unsubscribe' in the body.  No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.



More information about the commits mailing list