summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorGeorge Burgess IV <gbiv@google.com>2017-09-19 16:36:02 -0700
committerGeorge Burgess IV <gbiv@google.com>2017-09-19 16:42:01 -0700
commitbbe04e87e9f7227b4a661a5ef05967fcca8439ec (patch)
tree14e61bcd68374594a42478e3d6d0971f4ac9bacb /tools/aapt2/java/JavaClassGenerator_test.cpp
parentc59951dc28ae76f5c31b243c5d7940f90517d950 (diff)
incidentd: fix memory leaks in a test
The static analyzer found many memory leaks in this file. Converting everything to use unique_ptr became really ugly, and involved lots of copying from lists of unique_ptr<Privacy> to lists of Privacy*. Since these tests really don't seem to allocate much, freeing everything en masse at the end should be good enough. Bug: 27101951 Test: mma; memory leak warnings are gone. Running /data/nativetest64/incidentd_test/incidentd_test shows no failures. Change-Id: I151b7ef4e02ee736e4e833924c0500e8dbedcc49
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions