prevent memleak in set_pixmap_property