Skip to content

Commit

Permalink
PPD object lifecycle debugging.
Browse files Browse the repository at this point in the history
  • Loading branch information
twaugh committed Nov 25, 2011
1 parent 956cba1 commit f5ebf53
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
2011-11-25 Tim Waugh <[email protected]>

* cupsppd.c: Object lifecycle debugging.

2011-10-11 Tim Waugh <[email protected]>

* setup.py: Version 1.9.60.
Expand Down
3 changes: 3 additions & 0 deletions cupsppd.c
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,7 @@ PPD_init (PPD *self, PyObject *args, PyObject *kwds)
return -1;
}

debugprintf ("+ PPD %p %s (fd %d)\n", self, filename, fileno (self->file));
self->ppd = ppdOpenFile (filename);
if (!self->ppd) {
fclose (self->file);
Expand All @@ -235,6 +236,8 @@ PPD_init (PPD *self, PyObject *args, PyObject *kwds)
static void
PPD_dealloc (PPD *self)
{
debugprintf ("- PPD %p (fd %d)\n", self, fileno (self->file));

if (self->file)
fclose (self->file);
if (self->ppd)
Expand Down

0 comments on commit f5ebf53

Please sign in to comment.