My code:
char* fileName;
fileName=g_filename_from_utf8(gtk_file_chooser_get_filename (GTK_FILE_CHOOSER (dialog)),-1,NULL,NULL,NULL);
The string returned from gtk_file_chooser_get_filename() cannot be referenced, so it can't be freed. Is this a memory leak? Should I assign it to an identifier and then free() it instead of passing it directly to g_filename_from_utf8()?