Skip to content

Commit

Permalink
Fixed some more reference count issues (trac #17).
Browse files Browse the repository at this point in the history
  • Loading branch information
twaugh committed Dec 8, 2011
1 parent 8baaca9 commit beaa5c0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 3 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
2011-12-08 Tim Waugh <[email protected]>

* cupsppd.c (PPD_emitString): Fixed some more reference count
issues (trac #17).

* cupsipp.c: Fixed reference count issue with called object
result (trac #17).
(cupsipp_iocb_read): Prevent NULL dereference when
Expand Down
3 changes: 1 addition & 2 deletions cupsppd.c
Original file line number Diff line number Diff line change
Expand Up @@ -551,11 +551,10 @@ PPD_emitString (PPD *self, PyObject *args)
ret = PyString_FromString(emitted);
free (emitted);
} else {
Py_INCREF (Py_None);
ret = Py_None;
}

Py_INCREF (ret);

return ret;
}

Expand Down

0 comments on commit beaa5c0

Please sign in to comment.