Skip to content

Commit 4d170a1

Browse files
committed
cosmetics.
1 parent 6b11c31 commit 4d170a1

File tree

2 files changed

+5
-9
lines changed

2 files changed

+5
-9
lines changed

avisynth/README.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ Changelog:
146146
- a bit optimized gaussian-blur/hysteresis.
147147

148148
1.1.1 (20160330):
149-
- Add AVX2 support for 32bit.
149+
- Add AVX2 support for 32bit.
150150

151151

152152
Source code:

avisynth/src/tcannymod.cpp

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -208,10 +208,8 @@ TCannyM::TCannyM(PClip ch, int m, float sigma, float tmin, float tmax, int c,
208208

209209
TCannyM::~TCannyM()
210210
{
211-
if (horizontalKernel) {
212-
_aligned_free(horizontalKernel);
213-
horizontalKernel = nullptr;
214-
}
211+
_aligned_free(horizontalKernel);
212+
horizontalKernel = nullptr;
215213
}
216214

217215

@@ -237,10 +235,8 @@ class Buffers {
237235
};
238236
~Buffers()
239237
{
240-
if (orig) {
241-
_aligned_free(orig);
242-
orig = nullptr;
243-
}
238+
_aligned_free(orig);
239+
orig = nullptr;
244240
};
245241
};
246242

0 commit comments

Comments
 (0)