Re: PATCH: anti memleak part 1



 From 
http://cvs.gnome.org/bonsai/cvsblame.cgi?file=gnome-libs/libgnomeui/Attic/gnome-file-entry.c&rev=&root=/cvs/gnome

666 jirka   1.13 /**
667               * gnome_file_entry_get_full_path:
668 dmg     1.21  * @fentry: The GnomeFileEntry widget to work with.
669 jirka   1.13  * @file_must_exist: boolean
670               *
671 dmg     1.21  * Description: Gets the full absolute path of the 
file from the entry.
672               * If @file_must_exist is false, nothing is tested and 
the path is returned.
673               * If @file_must_exist is true, then the path is only 
returned if the path
674 jirka   1.13  * actually exists. In case the entry is a directory 
entry (see
675               * #gnome_file_entry_set_directory), then if the path 
exists and is a
676 dmg     1.21  * directory then it's returned; if not, it is assumed 
it was a file so
677               * we try to strip it, and try again. It allocates 
memory for the returned string.
678 jirka   1.13  *
679               * Returns: a newly allocated string with the path or 
NULL if something went
680               * wrong
681               **/



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