two possible memleaks in werkkzeug3 #13

Merged
merged 2 commits into from Apr 25, 2012
Jump to file or symbol
Failed to load files and symbols.
+6 −4
Split
View
@@ -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);
@@ -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);