diff options
author | Richard Hughes <richard@hughsie.com> | 2014-11-18 11:12:36 +0000 |
---|---|---|
committer | Richard Hughes <richard@hughsie.com> | 2014-11-18 11:12:36 +0000 |
commit | 9caf9ed103d2f5d9412bee8a6e02d94a5de7b0df (patch) | |
tree | 49c91d0880490162a9f076c9c559271ac38be71c /lib | |
parent | b8b48fc544d6ff0410eecbc7f32ab71fba770ee2 (diff) | |
download | colord-9caf9ed103d2f5d9412bee8a6e02d94a5de7b0df.tar.gz |
trivial: Fix memory leak introduced in 0f0b5c89258b3781c0f73b2729e3665c31cdbd56
Diffstat (limited to 'lib')
-rw-r--r-- | lib/colord/cd-it8.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/colord/cd-it8.c b/lib/colord/cd-it8.c index 9abe3fd..bb7a4e7 100644 --- a/lib/colord/cd-it8.c +++ b/lib/colord/cd-it8.c @@ -697,6 +697,7 @@ cd_it8_load_ccss_spect (CdIt8 *it8, cmsHANDLE it8_lcms, GError **error) cd_spectrum_set_end (spectrum, spectral_end); cd_spectrum_set_norm (spectrum, spectral_norm); cd_it8_add_spectrum (it8, spectrum); + cd_spectrum_free (spectrum); } return TRUE; } @@ -801,6 +802,7 @@ cd_it8_load_cmf (CdIt8 *it8, cmsHANDLE it8_lcms, GError **error) cd_spectrum_set_end (spectrum, spectral_end); cd_spectrum_set_norm (spectrum, spectral_norm); cd_it8_add_spectrum (it8, spectrum); + cd_spectrum_free (spectrum); } return TRUE; } |