diff options
author | Markus Mohrhard <markus.mohrhard@collabora.co.uk> | 2014-07-23 22:56:24 +0200 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@collabora.co.uk> | 2014-07-23 22:58:10 +0200 |
commit | bffb6ccc133987dcb11d0b9ac7135fdc7430c49b (patch) | |
tree | 4cc01b19dbf1d5bf12b2c925811fc7b3dc17b225 /chart2 | |
parent | 5e72b7b77e77561fe965b0c5a3446d4fdb99503f (diff) |
that mutex is not necessary
The join makes sure that the thread is not running anymore
Change-Id: I3f900e36833240544005d03ce1ae1f2330365a03
Diffstat (limited to 'chart2')
-rw-r--r-- | chart2/source/view/charttypes/GL3DBarChart.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/chart2/source/view/charttypes/GL3DBarChart.cxx b/chart2/source/view/charttypes/GL3DBarChart.cxx index c5526b17fc19..d681c330763c 100644 --- a/chart2/source/view/charttypes/GL3DBarChart.cxx +++ b/chart2/source/view/charttypes/GL3DBarChart.cxx @@ -223,9 +223,10 @@ GL3DBarChart::~GL3DBarChart() osl::MutexGuard aGuard(maMutex); mbRenderDie = true; } + if(mpRenderThread.is()) mpRenderThread->join(); - osl::MutexGuard aGuard(maMutex); + if(mbValidContext) mrWindow.setRenderer(NULL); } |