Bug 793669 - histogram-related bug report.
When the histogram is freed, we need to set valid to FALSE, in order to force recreation as soon as needed. Otherwise we may hit some race condition of trying to work with a NULL histogram. For instance this happened when starting painting fast enough after switching the active image.
Showing with 3 additions and 0 deletions