Rev 3466 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 3466 | Rev 3468 | ||
---|---|---|---|
Line 17... | Line 17... | ||
17 | return num_of_pics; |
17 | return num_of_pics; |
18 | } |
18 | } |
Line 19... | Line 19... | ||
19 | 19 | ||
20 | void FreeImgCache() |
20 | void FreeImgCache() |
21 | { |
- | |
22 | int i; |
21 | { |
23 | for (i=0; i<=num_of_pics; i++) |
22 | for ( ; num_of_pics>0; num_of_pics--) |
24 | { |
23 | { |
25 | img_destroy stdcall (pics[num_of_pics].image); |
24 | if (pics[num_of_pics].image) img_destroy stdcall (pics[num_of_pics].image); |
26 | pics[num_of_pics].path = NULL; |
25 | pics[num_of_pics].path = NULL; |
27 | } |
- | |
28 | num_of_pics=0; |
26 | } |
Line 29... | Line 27... | ||
29 | } |
27 | } |
30 | 28 |