[Fix] Fixed a memory leak.

This commit is contained in:
Allanis 2014-07-23 20:16:02 +01:00
parent f0fbae3f63
commit ab741a257f

View File

@ -215,6 +215,10 @@ int spfx_load(void) {
/* Shrink back to minimum - shouldn't change ever. */
spfx_effects = realloc(spfx_effects, sizeof(SPFX_Base) * spfx_neffects);
/* Clean up. */
xmlFreeDoc(doc);
free(buf);
/* Now initialize force feedback. */
spfx_hapticInit();