prevent crash while disposing ListControl when children are disposed

Change-Id: I9e69d0b29ab41428d87bf37edeebe652f7e9c297
Reviewed-on: https://gerrit.libreoffice.org/43251
Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Tested-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
diff --git a/vcl/source/control/listctrl.cxx b/vcl/source/control/listctrl.cxx
index 66c743f..1c42b05 100644
--- a/vcl/source/control/listctrl.cxx
+++ b/vcl/source/control/listctrl.cxx
@@ -45,6 +45,12 @@ void ListControl::dispose()

void ListControl::RecalcAll()
{
    // avoid recalculating while we are disposing
    // children. This just leads to complex invalid memory
    // access patterns that are not fixable.
    if (IsDisposed())
        return;

    sal_Int32 nTotalHeight = 0;
    for (const auto& item : maEntries)
    {