fixed #254 memory leak fixed by using a WeakHashMap and by removing items in a finally block
Merge branch 'bug/254-memoryleak-iconfactory' into dev