Skip to content
  • Tor Lillqvist's avatar
    Argh, decided not to return a string that must be freed from · a30c4b9e
    Tor Lillqvist authored
    gtk_file_selection_get_filename after all, as that would
    cause memory leaks in all apps that use it unless they
    specifically checked fot the GTk+ version.
    
    gtk_file_selection_get_filename returns the filename in the C
    runtime encoding. It calls g_filename_from_utf8, but copies the
    returned string to a static buffer, which is returned. I think
    this is better than returning the result from g_filename_from_utf8
    directly, which would mean all apps that use it would have to free
    the return value. Or should this function care about this issue at
    all? Maybe a new function with clearly defined semantics.
    a30c4b9e
To find the state of this project's repository at the time of any of these versions, check out the tags.