gtk_clist_set_row_data_full() bug




I've just noticed that gtk_clist_set_row_data_full() isn't calling
the destroy function on the old data, which means memory may be leaked.

I think these 2 lines need to be added:

  if (clist_row->destroy)
    clist_row->destroy (clist_row->data);


Damon




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]