[svn:parrot] r45176 - trunk/src/pmc
chromatic at svn.parrot.org
chromatic at svn.parrot.org
Thu Mar 25 07:04:39 UTC 2010
Author: chromatic
Date: Thu Mar 25 07:04:38 2010
New Revision: 45176
URL: https://trac.parrot.org/parrot/changeset/45176
Log:
[PMC] Tidied code in ImageIO PMC, and NULLed out the freed PackFile in its
destroy vtable.
Modified:
trunk/src/pmc/imageio.pmc
Modified: trunk/src/pmc/imageio.pmc
==============================================================================
--- trunk/src/pmc/imageio.pmc Thu Mar 25 07:04:31 2010 (r45175)
+++ trunk/src/pmc/imageio.pmc Thu Mar 25 07:04:38 2010 (r45176)
@@ -236,11 +236,11 @@
*/
VTABLE void init() {
- PARROT_IMAGEIO(SELF)->buffer = NULL;
- PARROT_IMAGEIO(SELF)->todo = Parrot_pmc_new(INTERP, enum_class_ResizablePMCArray);
- PARROT_IMAGEIO(SELF)->seen = PMCNULL;
- PARROT_IMAGEIO(SELF)->id = 0;
- PARROT_IMAGEIO(SELF)->pf = PackFile_new(INTERP, 0);
+ PARROT_IMAGEIO(SELF)->buffer = NULL;
+ PARROT_IMAGEIO(SELF)->todo = Parrot_pmc_new(INTERP, enum_class_ResizablePMCArray);
+ PARROT_IMAGEIO(SELF)->seen = PMCNULL;
+ PARROT_IMAGEIO(SELF)->id = 0;
+ PARROT_IMAGEIO(SELF)->pf = PackFile_new(INTERP, 0);
PObj_custom_mark_destroy_SETALL(SELF);
}
@@ -257,6 +257,7 @@
*/
VTABLE void destroy() {
PackFile_destroy(INTERP, PARROT_IMAGEIO(SELF)->pf);
+ PARROT_IMAGEIO(SELF)->pf = NULL;
}
/*
More information about the parrot-commits
mailing list