diff options
author | Guy Harris <guy@alum.mit.edu> | 2012-06-03 22:03:05 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2012-06-03 22:03:05 +0000 |
commit | dbfb305368f0178348fd613665a5f5bf05f62d8a (patch) | |
tree | b9609c547a4181a21a0de0b99e1e22a577782b69 /file.h | |
parent | d1c1455882aa50f5ffdb5ba5dfdd6c4a4a45f649 (diff) |
g_filename_display_basename() returns a g_mallocated string, so its
callers either need to free it or their callers need to free it or....
This means that cf_get_display_name() must always return a g_mallocated
string and its callers or... must free it.
For some of those callers, create a new set_window_title() routine to do
the work - they're all using the same pattern.
svn path=/trunk/; revision=43047
Diffstat (limited to 'file.h')
-rw-r--r-- | file.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -237,9 +237,9 @@ cf_status_t cf_export_specified_packets(capture_file *cf, const char *fname, * Get a displayable name of the capture file. * * @param cf the capture file - * @return the displayable name (don't have to be g_free'd) + * @return the displayable name (must be g_free'd) */ -const gchar *cf_get_display_name(capture_file *cf); +gchar *cf_get_display_name(capture_file *cf); /** * Set the source of the capture data for temporary files, e.g. |