1
0
mirror of https://github.com/gryf/wmaker.git synced 2026-02-13 20:35:54 +01:00

WINGs: Add functions to release application memory

This commit is contained in:
David Maciejak
2014-04-06 01:52:50 +02:00
committed by Carlos R. Mafra
parent 36c3f7edf4
commit 588e04dda7
4 changed files with 35 additions and 1 deletions

View File

@@ -48,6 +48,21 @@ void WMInitializeApplication(const char *applicationName, int *argc, char **argv
W_InitNotificationCenter();
}
void WMReleaseApplication(void) {
int i;
W_ReleaseNotificationCenter();
if (WMApplication.applicationName)
wfree(WMApplication.applicationName);
for (i = 0; i < WMApplication.argc; i++)
wfree(WMApplication.argv[i]);
if (WMApplication.argv)
wfree(WMApplication.argv);
}
void WMSetResourcePath(const char *path)
{
if (WMApplication.resourcePath)