I'm using PySDL2 and while reading the examples, I noticed that the examples call sdl2.SDL_FreeSurface(image). I am wondering, if I don't use FreeSurface, does that create a memory leak? Doesn't the garbage collection handle this?
PySDL2 and SDL_FreeSurface
377 Views Asked by SeriousBug At
1
There are 1 best solutions below
Related Questions in PYTHON
- new thread blocks main thread
- Extracting viewCount & SubscriberCount from YouTube API V3 for a given channel, where channelID does not equal userID
- Display images on Django Template Site
- Difference between list() and dict() with generators
- How can I serialize a numpy array while preserving matrix dimensions?
- Protractor did not run properly when using browser.wait, msg: "Wait timed out after XXXms"
- Why is my program adding int as string (4+7 = 47)?
- store numpy array in mysql
- how to omit the less frequent words from a dictionary in python?
- Update a text file with ( new words+ \n ) after the words is appended into a list
- python how to write list of lists to file
- Removing URL features from tokens in NLTK
- Optimizing for Social Leaderboards
- Python : Get size of string in bytes
- What is the code of the sorted function?
Related Questions in SDL-2
- SDL2 Linker Errors with REAL
- SDL2 main game loop
- SDL2 understanding the basic model
- SDL_PollEvent() loop is not executing. Are no events being queued?
- SDL_Keycodes are too big for storage
- Why does my working directory change to C:\Windows\System32 when I use a Console subsystem
- Nim and SDL2 trouble with Rect
- SDL_RenderSetClipRect works different on different platforms - how detect whether measured from top or bottom?
- SDL2: set input focus on a window
- SDL_LoadBMP() is successful, but the window becomes entirely black
- SDL2 - Vsync not working
- How to work without memory limit in android jni?
- GLEW can't find GL version
- Can't draw with opengl version greater then 3.1 with SDL
- SDL_Init fails on linuxbrew while system wide version works
Related Questions in PYSDL2
- PySDL2 Making multiple Surfaces
- Pysdl2 on OSX How to prevent beachball cursor during long iteration loops
- SDL2 pixel graphics pipeline
- How to get mouse position using PySDL2?
- What causes this deformation in sdl2.sdlgfx.circleColor?
- How to run an SDL2 GUI app on debian without OS gui (no X)?
- SDL2 does not receive keyboard events while running in Debian minimum (console only - No X or Wayland Window managers)
- Render an array of rgb pixels on a canvas
- RuntimeError for SDL2 after installing pySDL2
- RuntimeError: could not find any library for SDL2_ttf
- PySDL2 issue with SDL_Surface / LP_SDL_Surface
- Converting cv2 images to PySDL2 surfaces for blitting to screen
- Portable .so library for Linux
- Problems setting up pySDL2 on mac os x 10.9
- Pysdl2 stuck in tutorial
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
It creates a memory leak, if the surface is not managed by some high-level wrapper (e.g. the SoftwareSprite/TextureSprite objects found in the pysdl2.ext package http://pysdl2.readthedocs.org/en/latest/modules/sdl2ext_sprite.html).
The SDL2 functions and structures of PySDL2 are plain 1:1 wrappers to the C library, so there is no automated garbage collection.