mirror of
https://github.com/webmproject/libwebp.git
synced 2024-11-19 20:08:28 +01:00
WebPAnimEncoderNewInternal: remove some unnecessary inits
enc is allocated with WebPSafeCalloc so there's no need to clear the pointers afterward. this has the side-effect of removing a non-inclusive term. Bug: webp:507 Change-Id: I82f82954936638c4c15d33b2d6f0497a6a13571f
This commit is contained in:
parent
6fb4cddc93
commit
29b6129c78
@ -248,9 +248,6 @@ WebPAnimEncoder* WebPAnimEncoderNewInternal(
|
||||
|
||||
enc = (WebPAnimEncoder*)WebPSafeCalloc(1, sizeof(*enc));
|
||||
if (enc == NULL) return NULL;
|
||||
// sanity inits, so we can call WebPAnimEncoderDelete():
|
||||
enc->encoded_frames_ = NULL;
|
||||
enc->mux_ = NULL;
|
||||
MarkNoError(enc);
|
||||
|
||||
// Dimensions and options.
|
||||
|
Loading…
Reference in New Issue
Block a user