Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

two possible memleaks in werkkzeug3 #13

Merged
merged 2 commits into from Apr 25, 2012
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 3 additions & 2 deletions werkkzeug3/genbitmap.cpp
Expand Up @@ -1463,11 +1463,12 @@ GenBitmap * __stdcall Bitmap_Blur(GenBitmap *bm,sInt flags,sF32 sx,sF32 sy,sF32

// prepare

pp = (sU16 *)bm->Data;
qq = (sU16 *) new sU64[bm->Size];
order = flags & 15;
if(order==0) return bm;

pp = (sU16 *)bm->Data;
qq = (sU16 *) new sU64[bm->Size];

// blur x

size = sFtol(128*sx*bm->XSize);
Expand Down
5 changes: 3 additions & 2 deletions werkkzeug3/w3texlib/genbitmap.cpp
Expand Up @@ -1346,11 +1346,12 @@ GenBitmap * __stdcall Bitmap_Blur(GenBitmap *bm,sInt flags,sF32 sx,sF32 sy,sF32

// prepare

pp = (sU16 *)bm->Data;
qq = (sU16 *) new sU64[bm->Size];
order = flags & 15;
if(order==0) return bm;

pp = (sU16 *)bm->Data;
qq = (sU16 *) new sU64[bm->Size];

// blur x

size = sFtol(128*sx*bm->XSize);
Expand Down