We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 679

Summary: Leak memory?
Product: SDL Reporter: SEN <sendel2000>
Component: videoAssignee: Ryan C. Gordon <icculus>
Status: RESOLVED INVALID QA Contact: Sam Lantinga <slouken>
Severity: critical    
Priority: P2 Keywords: target-1.2.14
Version: 1.2.13   
Hardware: x86   
OS: Windows (All)   

Description SEN 2009-01-15 04:05:20 UTC
When I try blit from surface to surface in MinGW32 (in linux all ok!):

int func1()
{
SDL_Surface *screen=LoadBMP...
 for(i=0;i<N;i++)
 {
  SDL_BlitSurface(screen, &destrect, screen, &destrect); //count N times
 }
}

int func2()
{
 get_data_frm_net(data); //Im try other schema: curl, OpenSSL, wininet.dll
 func1();
 get_data_frm_net(data); //may crush 
}

**************
I Resolve this bug only as:
SDL_Surface *temp=SDL_DisplayFormat(screen);
SDL_BlitSurface(temp, &destrect, screen, &destrect); //count N times
SDL_FreeSurface(temp);
**************
Comment 1 Ryan C. Gordon 2009-09-13 16:33:38 UTC
Tagging this bug with "target-1.2.14" so we can try to resolve it for SDL 1.2.14.

Please note that we may choose to resolve it as WONTFIX. This tag is largely so we have a comprehensive wishlist of bugs to examine for 1.2.14 (and so we can close bugs that we'll never fix, rather than have them live forever in Bugzilla).

--ryan.
Comment 2 Sam Lantinga 2009-09-21 04:00:01 UTC
This is very likely caused by memory corruption elsewhere in your program.

If you can reproduce it with a simple test case, please attach it and reopen this bug!