Fixes another two bugs detected by cppcheck, no Issue
This commit is contained in:
@@ -499,7 +499,7 @@ DCraw::dcraw_coeff_overrides(const char make[], const char model[], const int is
|
|||||||
|
|
||||||
*black_level = -1;
|
*black_level = -1;
|
||||||
*white_level = -1;
|
*white_level = -1;
|
||||||
memset(trans, 0, sizeof(trans));
|
memset(trans, 0, sizeof(*trans)*12);
|
||||||
|
|
||||||
// indicate that DCRAW wants these from constants (rather than having loaded these from RAW file
|
// indicate that DCRAW wants these from constants (rather than having loaded these from RAW file
|
||||||
// note: this is simplified so far, in some cases dcraw calls this when it has say the black level
|
// note: this is simplified so far, in some cases dcraw calls this when it has say the black level
|
||||||
|
@@ -151,7 +151,7 @@ void BatchQueueEntryUpdater::terminate () {
|
|||||||
|
|
||||||
if (!stopped) {
|
if (!stopped) {
|
||||||
// Yield to currently running thread and wait till it's finished
|
// Yield to currently running thread and wait till it's finished
|
||||||
GThreadUnLock();
|
GThreadUnLock lock;
|
||||||
tostop = true;
|
tostop = true;
|
||||||
Glib::Thread::self()->yield();
|
Glib::Thread::self()->yield();
|
||||||
if (!stopped) thread->join ();
|
if (!stopped) thread->join ();
|
||||||
|
Reference in New Issue
Block a user