[Github-comments] [geany] Fix known memory leak in win32_show_folder_dialog() (#812)

Matthew Brush notifications at xxxxx
Mon Dec 14 15:40:46 UTC 2015


> @@ -284,7 +284,7 @@ INT CALLBACK BrowseCallbackProc(HWND hwnd, UINT uMsg, LPARAM lp, LPARAM pData)
>  gchar *win32_show_folder_dialog(GtkWidget *parent, const gchar *title, const gchar *initial_dir)
>  {
>  	BROWSEINFOW bi;
> -	LPCITEMIDLIST pidl;
> +	LPITEMIDLIST pidl;

L=long
P=pointer
C=const

Just changed it from a const pointer to a non-const one so it could be passed to `CoTaskMemFree()` without warnings/errors.

---
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/pull/812/files#r47512090
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20151214/ed7959c7/attachment.html>


More information about the Github-comments mailing list