GPasteHistory: use the max_memory setting

Signed-off-by: Marc-Antoine Perennou <Marc-Antoine@Perennou.com>