Fix a memory leak in jqplot