qcms: Replace second green table release with release of blue table
authorSteve Snyder <swsnyder@snydernet.net>
Thu, 18 Feb 2010 15:21:11 -0500
changeset 38283 8e7fda69fda028d2b5128849b2091ac493b1ec13
parent 38282 c4d326d51866bfa4b78ad2db2a42343c281d8d85
child 38288 34586c92416ff68efe1689f363801b58ceb1af0f
push id11669
push userjmuizelaar@mozilla.com
push dateThu, 18 Feb 2010 20:23:53 +0000
treeherdermozilla-central@8e7fda69fda0 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
milestone1.9.3a2pre
qcms: Replace second green table release with release of blue table Cut 'n' paste gone awry: green output table freed instead of blue. That is, there exists a release for red, 2 releases for green, and none for blue.
gfx/qcms/transform.c
--- a/gfx/qcms/transform.c
+++ b/gfx/qcms/transform.c
@@ -1158,18 +1158,18 @@ void qcms_profile_precache_output_transf
 			precache_release(profile->output_table_g);
 			profile->output_table_g = NULL;
 		}
 	}
 	if (!profile->output_table_b) {
 		profile->output_table_b = precache_create();
 		if (profile->output_table_b &&
 				!compute_precache(profile->blueTRC, profile->output_table_b->data)) {
-			precache_release(profile->output_table_g);
-			profile->output_table_g = NULL;
+			precache_release(profile->output_table_b);
+			profile->output_table_b = NULL;
 		}
 	}
 }
 
 #define NO_MEM_TRANSFORM NULL
 
 qcms_transform* qcms_transform_create(
 		qcms_profile *in, qcms_data_type in_type,