smalot/bootstrap-datetimepicker — pull request #113 by RAndrey (2013-08-02 21:24:01+00:00)
Title: Fixed memory leak

Calling .datetimepicker("remove") wasn't dereferencing internal "picker" field, which is referencing DOM tree. This сaused DOM elements to be detached, but not released from memory.

Sample code to repro:

Remove DateTime Picker

(Bootstrap and css are not referenced to make it as simple as possible)

Steps:
1. Open this html in chrome
2. Click 'Remove DateTime Picker' button.
3. Open chome's dev tools (F12) and navigate to the "Profiles" tab.
4. Select Take Heap Snapshot and click Take Snapshot.
5, Once snapshot is generated switch to the Containment mode and analyze "Detached DOM trees" node.

![image](https://f.cloud.github.com/assets/798485/904000/774b2498-fbb9-11e2-8d1a-c3e098e3d30a.png)