~ubuntu-branches/ubuntu/saucy/darktable/saucy

« back to all changes in this revision

Viewing changes to src/common/image.c

  • Committer: Package Import Robot
  • Author(s): David Bremner
  • Date: 2012-07-27 06:59:38 UTC
  • mfrom: (8.1.6 sid)
  • Revision ID: package-import@ubuntu.com-20120727065938-8691rjluecif4nyy
* New upstream release
  - Update to RawSpeed r438
  - Update to LibRaw 0.14.7
  - White balance presets for Nikon Coolpix P7100 and Panasonic GF3
  - White balance preset updates for Canon EOS 7D, Canon EOS 350D
  - Standard Color Matrices for Canon EOS 650D, Canon EOS 5D Mark III,
    Canon EOS 1D X, Canon PowerShot G1 X, Canon PowerShot SX220, Nikon
    D3200, Nikon D4, Nikon D800, Olympus E-M5, Panasonic GF5, Sony
    SLT-A37/A57, Leica X1/X2, Sony DSC-RX100
* Build with libtiff5 (Closes: #682588).
* Switch to debhelper compat 9, for hardening support

Show diffs side-by-side

added added

removed removed

Lines of Context:
389
389
  dt_tag_attach(tagid,id);
390
390
 
391
391
  // Search for sidecar files and import them if found.
392
 
  glob_t *globbuf = malloc(sizeof(glob_t));
 
392
  glob_t *globbuf = g_malloc(sizeof(glob_t));
393
393
 
394
394
  // Add version wildcard
395
395
  gchar *fname = g_strdup(filename);
420
420
 
421
421
  g_free(imgfname);
422
422
  g_free(fname);
 
423
  g_free(globbuf);
423
424
 
424
425
  return id;
425
426
}
493
494
  if(dt_conf_get_bool("write_sidecar_files"))
494
495
  {
495
496
    // Delete all existing .xmp files.
496
 
    glob_t *globbuf = malloc(sizeof(glob_t));
497
 
    
 
497
    glob_t *globbuf = g_malloc(sizeof(glob_t));
 
498
 
498
499
    gchar *fname = g_strdup(pathname);
499
500
    gchar pattern[1024];
500
501
    g_snprintf(pattern, 1024, "%s", pathname);
529
530
    g_free(fname);
530
531
    g_free(imgfname);
531
532
    g_free(imgpath);
 
533
    g_free(globbuf);
532
534
  }
533
535
}
534
536