~edwin-grubbs/python-imaging/trunk

« back to all changes in this revision

Viewing changes to encode.c

  • Committer: effbot
  • Date: 2006-07-05 20:36:11 UTC
  • Revision ID: svn-v4:be285980-f00d-0410-a9fe-d4747b46ecd0:pil:348
Load Imaging-1.1.6b1 into pil.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
2
 * The Python Imaging Library.
3
 
 * $Id: encode.c 2505 2005-09-05 16:29:53Z fredrik $
 
3
 * $Id: encode.c 2751 2006-06-18 19:50:45Z fredrik $
4
4
 *
5
5
 * standard encoder interfaces for the Imaging library
6
6
 *
60
60
 
61
61
    ImagingEncoderType.ob_type = &PyType_Type;
62
62
 
63
 
    encoder = PyObject_NEW(ImagingEncoderObject, &ImagingEncoderType);
 
63
    encoder = PyObject_New(ImagingEncoderObject, &ImagingEncoderType);
64
64
    if (encoder == NULL)
65
65
        return NULL;
66
66
 
94
94
    free(encoder->state.buffer);
95
95
    free(encoder->state.context);
96
96
    Py_XDECREF(encoder->lock);
97
 
    PyObject_DEL(encoder);
 
97
    PyObject_Del(encoder);
98
98
}
99
99
 
100
100
static PyObject*