Fixed a memory corruption bug in HPHD

This commit is contained in:
Oliver Duis
2011-04-16 23:40:43 +02:00
parent 38318b6688
commit 41b3987cb4

View File

@@ -543,13 +543,13 @@ void RawImageSource::hphd_demosaic () {
#else #else
hphd_horizontal (hpmap, 0, H); hphd_horizontal (hpmap, 0, H);
#endif #endif
freeArray<float>(hpmap, H);
hphd_green (hpmap);
freeArray<float>(hpmap, H);
if (plistener) if (plistener)
plistener->setProgress (0.66); plistener->setProgress (0.66);
hphd_green (hpmap);
for (int i=0; i<H; i++) { for (int i=0; i<H; i++) {
if (i==0) if (i==0)
// rm, gm, bm must be recovered // rm, gm, bm must be recovered