Re: [gtk-list] Re: memory allocation/freeing



> Just a near by question. 
> The function gtk_clist_set_row_data(..., gpointer data) just stores
> the pointer in the clist, and if I understand you right it should
> copy the "unknown" object (would need the length) or it should
> take a reference counted object as parameter?
> 
> There exists a memory leak in the fileselection dialog because this
> odd behavior (the clists dir_list and file_list will be populated
> with data from gtk_file_selection_populate but the clist-destroy
> functionality nor the file_selection-destroy functionality will
> free the data in the list.

This problem needs to be addressed in the filesel dialog; clist should
never try to do anything with its data.  It might be true there needs to
be a easier way to run a function on all the data pointers in a clist to
help solve this problem.

-Jay



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