Project

General

Profile

0001-fixes-8774.patch

James C. McPherson, 06/17/2012 03:53 AM

View differences:

src/imageio/format/tiff.c
50 50
  // Fetch colorprofile into buffer if wanted
51 51
  uint8_t *profile = NULL;
52 52
  uint32_t profile_len = 0;
53
  int rc = 0;
54

  
53 55
  if(imgid > 0)
54 56
  {
55 57
    cmsHPROFILE out_profile = dt_colorspaces_create_output_profile(imgid);
......
143 145
    free(rowdata);
144 146
  }
145 147

  
146
  if(exif) dt_exif_write_blob(exif,exif_len,filename);
147
  free(profile);
148
  if(exif)
149
    rc = dt_exif_write_blob(exif,exif_len,filename);
148 150

  
149
  return 1;
151
    free(profile);
152

  
153
  /*
154
   * Until we get symbolic error status codes, if rc is 1, return 0.
155
   */
156
  return ((rc == 1) ? 0 : 1);
150 157
}
151 158

  
152 159
#if 0
153
- 
Go to top