You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There's a similar issue with the Mac version where the memory for the filename string will be freed before the function returns. In both cases I had to strdup() the string and return that.
The gtk version and sandbox version both correctly strdup() the filename. I don't fully understand the adw code but it looks like it might also be missing a strdup().
The text was updated successfully, but these errors were encountered:
The dialog struct has the filename set to a pointer to stack memory:
We no longer use the backend-specific implementations on any backend. See src/impl/nvdialog_typeimpl.h, that's where the types are implemented now. In other words, you're looking at the wrong type.
I don't know about the macos backend (Are you talking about #55 ?), but the backend for MacOS is generally abandoned due to lack of maintainers.
The dialog struct has the filename set to a pointer to stack memory:
nvdialog/src/backend/win32/nvdialog_file_dialog.c
Line 75 in c35acb9
Then at the end of the function, the pointer is returned without copying the memory to the heap:
nvdialog/src/backend/win32/nvdialog_file_dialog.c
Lines 107 to 109 in c35acb9
There's a similar issue with the Mac version where the memory for the filename string will be freed before the function returns. In both cases I had to
strdup()
the string and return that.The gtk version and sandbox version both correctly
strdup()
the filename. I don't fully understand the adw code but it looks like it might also be missing astrdup()
.The text was updated successfully, but these errors were encountered: