> Yes, this sure is much simpler :) Just don't forget to view->data=NULL in > the else branch as otherwise you'll get a segfault here: > > if (view->data != NULL) > g_free (view->data); Thanks! Fixed. -- Regards, Pavel Roskin