We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 01f7edf commit b536decCopy full SHA for b536dec
src/vorbis_decoder/vorbis_decoder.cpp
@@ -1448,7 +1448,10 @@ int32_t oggpack_eop() {
1448
1449
int32_t j;
1450
1451
- vorbis_info_floor_t *info = (vorbis_info_floor_t *)ps_malloc(sizeof(vorbis_info_floor_t));
+ ps_ptr<vorbis_info_floor_t> info;
1452
+ info.alloc(sizeof(vorbis_info_floor_t));
1453
+ info.clear();
1454
+
1455
info->order = bitReader( 8);
1456
info->rate = bitReader(16);
1457
info->barkmap = bitReader(16);
@@ -1466,7 +1469,7 @@ int32_t oggpack_eop() {
1466
1469
}
1467
1470
1468
1471
if(oggpack_eop()) goto err_out;
- return (info);
1472
+ return (info.get());
1473
1474
err_out:
1475
return (NULL);
0 commit comments