Details
-
Bug
-
Resolution: Unresolved
-
P2: Important
-
None
-
6.4.2
Description
The attached project has a TableModel, pressing insert calls insertRow on the model 99 times while setting the scrollbar to the bottom of the existing model after every insertion. Pressing delete calls removeRows 99 times while doing the same to the scrollbar.
I'm able to observe an increase in memory used by the application after pressing insert, going up with each row inserted. The application slows down as well. When pressing delete afterwards the increased memory usage persists. Calling insert again afterwards results in even more memory usage.
If I comment out the statement to set the scrollbar (line 187) the memory usage increases slightly on pressing insert but stabilizes quickly. The memory used doesn't go down if delete is pressed but pressing insert again afterwards does not result in too much extra memory used.