1al_free(3) al_free(3)
2
3
4
6 al_free - Allegro 5 API
7
9 #include <allegro5/allegro.h>
10
11 #define al_free(p) \
12 (al_free_with_context((p), __LINE__, __FILE__, __func__))
13
15 Like free() in the C standard library, but the implementation may be
16 overridden.
17
18 Additionally, on Windows, a memory block allocated by one DLL must be
19 freed from the same DLL. In the few places where an Allegro function
20 returns a pointer that must be freed, you must use al_free(3) for
21 portability to Windows.
22
23 This is a macro.
24
26 al_malloc(3), al_free_with_context(3)
27
28
29
30Allegro reference manual al_free(3)