ok, i figured it out. Turns out i had some Color objects that were created
before starting the application, like this:
public class MainFrame {
private Display display;
private Shell shell;
// this was the error, should have done the construction
// in the constructor :(
private Color red = new Color(display, 255, 100, 100);
private Color white = new Color(display, 255, 255, 255);