forked from BestImageViewer/geeqie
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes a double-ref-counting bug in
file_data_new_simple
and `file_d…
…ata_new_group` The bugs would cause all FileData objects created by `file_data_new_simple` or `file_data_new_group` to start off with a ref-count of 2, even though the only one reference to it had been created (the one returned by each method). As a result, creating the FileData and then immediately calling `file_data_unref` would not free it as would be expected. Also zero-initializes `struct stat st` so that its contents will be valid even if `stat_utf8` fails.
- Loading branch information
Showing
2 changed files
with
15 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters