Alex Henrie : winecfg: Annotate allocation functions with __WINE_(DEALLOC|MALLOC).
Module: wine Branch: master Commit: b8b55de6290281013d4388d6f8a56409139f32e6 URL: https://gitlab.winehq.org/wine/wine/-/commit/b8b55de6290281013d4388d6f8a5640... Author: Alex Henrie <alexhenrie24(a)gmail.com> Date: Sun Dec 4 20:36:22 2022 -0700 winecfg: Annotate allocation functions with __WINE_(DEALLOC|MALLOC). --- programs/winecfg/winecfg.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/programs/winecfg/winecfg.h b/programs/winecfg/winecfg.h index fe635cccdd0..f3f3ad2addf 100644 --- a/programs/winecfg/winecfg.h +++ b/programs/winecfg/winecfg.h @@ -54,14 +54,15 @@ extern WCHAR* current_app; /* NULL means editing global settings */ void set_reg_key(HKEY root, const WCHAR *path, const WCHAR *name, const WCHAR *value); void set_reg_key_dword(HKEY root, const WCHAR *path, const WCHAR *name, DWORD value); -WCHAR *get_reg_key(HKEY root, const WCHAR *path, const WCHAR *name, const WCHAR *def); +WCHAR *get_reg_key(HKEY root, const WCHAR *path, const WCHAR *name, const WCHAR *def) + __WINE_DEALLOC(free) __WINE_MALLOC; BOOL reg_key_exists(HKEY root, const WCHAR *path, const WCHAR *name); void apply(void); -WCHAR **enumerate_values(HKEY root, const WCHAR *path); +WCHAR **enumerate_values(HKEY root, const WCHAR *path) __WINE_DEALLOC(free) __WINE_MALLOC; /* Load a string from the resources. Allocated with malloc */ -WCHAR* load_string (UINT id); +WCHAR* load_string(UINT id) __WINE_DEALLOC(free) __WINE_MALLOC; /* returns a string of the form "AppDefaults\\appname.exe\\section", or just "section" if the user is editing the global settings.
participants (1)
-
Alexandre Julliard