[Fix] Fixed a memory leak.
This commit is contained in:
		
							parent
							
								
									f0fbae3f63
								
							
						
					
					
						commit
						ab741a257f
					
				| @ -215,6 +215,10 @@ int spfx_load(void) { | |||||||
|   /* Shrink back to minimum - shouldn't change ever. */ |   /* Shrink back to minimum - shouldn't change ever. */ | ||||||
|   spfx_effects = realloc(spfx_effects, sizeof(SPFX_Base) * spfx_neffects); |   spfx_effects = realloc(spfx_effects, sizeof(SPFX_Base) * spfx_neffects); | ||||||
| 
 | 
 | ||||||
|  |   /* Clean up. */ | ||||||
|  |   xmlFreeDoc(doc); | ||||||
|  |   free(buf); | ||||||
|  | 
 | ||||||
|   /* Now initialize force feedback. */ |   /* Now initialize force feedback. */ | ||||||
|   spfx_hapticInit(); |   spfx_hapticInit(); | ||||||
| 
 | 
 | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 Allanis
						Allanis