smasala / ColResize

DataTables extension to make columns resizable
MIT License
22 stars 12 forks source link

Memory leak when using with Vue #19

Open njmullen opened 4 years ago

njmullen commented 4 years ago

I'm running into an issue with ColResize when using the plugin within a single page Vue application.

It appears that the plugin is holding something from the table in memory, and each time a DataTable within the application is visited, the memory size grows by the table size, but it is not released when the table is navigated away from.

The table is being properly destroyed, but something within ColResize is holding onto memory references within the table, and causing a memory leak.

I've tried adding additional calls in the destroy() function within the plugin to try to remove more listeners and null more objects, but I'm not having any success.

Wanted to see if anyone had any issues like this in the past or any guidance about how ColResize allocates memory.

smasala commented 4 years ago

@njmullen are you able to replicate this in a jsfiddle or similar?