]> granicus.if.org Git - libvpx/commitdiff
vp9/encoder: fix last_frame_seg_map mem leak
authorJames Zern <jzern@google.com>
Thu, 22 Aug 2013 21:13:04 +0000 (14:13 -0700)
committerJames Zern <jzern@google.com>
Thu, 22 Aug 2013 21:13:04 +0000 (14:13 -0700)
remove duplicate allocation from vp9_create_compressor, it was added to
vp9_alloc_frame_buffers in:

d5bec52 Added resizing & initialization of last frame segment map

Change-Id: I996723226a16a62aff8f9a52ac74e0b73cc98fdf

vp9/encoder/vp9_onyx_if.c

index 83dc9042618611c482918f68a879ae66ae2dedcd..111325adca14c0dfe4809b91aafcfe440c379716 100644 (file)
@@ -1450,10 +1450,6 @@ VP9_PTR vp9_create_compressor(VP9_CONFIG *oxcf) {
   CHECK_MEM_ERROR(cm, cpi->segmentation_map,
                   vpx_calloc(cm->mi_rows * cm->mi_cols, 1));
 
-  // And a copy in common for temporal coding
-  CHECK_MEM_ERROR(cm, cm->last_frame_seg_map,
-                  vpx_calloc(cm->mi_rows * cm->mi_cols, 1));
-
   // And a place holder structure is the coding context
   // for use if we want to save and restore it
   CHECK_MEM_ERROR(cm, cpi->coding_context.last_frame_seg_map_copy,