1
0
mirror of https://github.com/gryf/wmaker.git synced 2025-12-18 20:10:29 +01:00

util: use wfree instead of free for consistency

The memory was allocated with wmalloc, so for consistency it should be
freed using wfree. This could be a problem if the user compiled with
support for Boehm GC, or if we later decide to add support for other malloc
libraries.

Signed-off-by: Christophe CURIS <christophe.curis@free.fr>
This commit is contained in:
Christophe CURIS
2014-11-29 16:35:31 +01:00
committed by Carlos R. Mafra
parent 6397f3403a
commit a24efec61f

View File

@@ -175,7 +175,7 @@ static void findCopyFile(const char *dir, const char *file)
return;
}
wcopy_file(dir, fullPath, fullPath);
free(fullPath);
wfree(fullPath);
}
#define THEME_SUBPATH "/Library/WindowMaker/Themes/"