Welcome,
Guest
. Please
login
or
register
. Did you miss your
activation email?
French forum
Home
Help
Search
Login
Register
SFML community forums
»
General
»
General discussions
»
freeing image memory
Print
Pages: [
1
]
Author
Topic: freeing image memory (Read 2741 times)
0 Members and 1 Guest are viewing this topic.
Dinocool
Newbie
Posts: 24
freeing image memory
«
on:
July 22, 2009, 12:58:04 pm »
How would i go about freeing an image from the RAM?
i.e you load an image, but how do you delete it?
i spose its not as simple as
delete img;
Logged
Laurent
Administrator
Hero Member
Posts: 32498
freeing image memory
«
Reply #1 on:
July 22, 2009, 01:09:33 pm »
The memory is freed when the sf::Image instance is destroyed, like any object. So you have nothing to do except properly managing the lifetime of your instances.
Logged
Laurent Gomila - SFML developer
blewisjr
Newbie
Posts: 23
freeing image memory
«
Reply #2 on:
July 26, 2009, 06:48:17 pm »
The wiki has a few resource system that can help you out with this under the source section.
Logged
Print
Pages: [
1
]
SFML community forums
»
General
»
General discussions
»
freeing image memory
anything