~ubuntu-branches/ubuntu/lucid/libxpm/lucid

« back to all changes in this revision

Viewing changes to src/Image.c

  • Committer: Bazaar Package Importer
  • Author(s): Julien Cristau
  • Date: 2009-11-25 19:31:08 UTC
  • mto: (1.1.5 upstream) (3.1.3 sid)
  • mto: This revision was merged to the branch mainline in revision 10.
  • Revision ID: james.westby@ubuntu.com-20091125193108-idq2c4e299mmh3q2
ImportĀ upstreamĀ versionĀ 3.5.8

Show diffs side-by-side

added added

removed removed

Lines of Context:
41
41
 * Init returned data to free safely later on
42
42
 */
43
43
void
44
 
xpmInitXpmImage(image)
45
 
    XpmImage *image;
 
44
xpmInitXpmImage(XpmImage *image)
46
45
{
47
46
    image->ncolors = 0;
48
47
    image->colorTable = NULL;
53
52
 * Free the XpmImage data which have been allocated
54
53
 */
55
54
void
56
 
XpmFreeXpmImage(image)
57
 
    XpmImage *image;
 
55
XpmFreeXpmImage(XpmImage *image)
58
56
{
59
57
    if (image->colorTable)
60
58
        xpmFreeColorTable(image->colorTable, image->ncolors);