DescriptionThe GrDebugGLInterface wasn't being leaked but was being freed post-main. The cached copy was somewhat of a belt-and-suspenders solution since GrContextFactory also caches the GLInterface.
BEFORE
Leaked SkRefCnt: 270
Leaked SkFlattenable: 233
Leaked SkWeakRefCnt: 3
Leaked SkTypeface: 3
Leaked GrGLInterface: 1
Leaked SkPDFObject: 22
Leaked SkPDFDict: 2
Leaked SkPDFArray: 2
Leaked SkPDFName: 8
Leaked SkPDFInt: 10
Leaked SkStream: 1
Leaked SkMemoryStream: 1
Leaked SkData: 2
Leaked ???: 8
AFTER
Leaked SkRefCnt: 269
Leaked SkFlattenable: 233
Leaked SkWeakRefCnt: 3
Leaked SkTypeface: 3
Leaked SkPDFObject: 22
Leaked SkPDFDict: 2
Leaked SkPDFArray: 2
Leaked SkPDFName: 8
Leaked SkPDFInt: 10
Leaked SkStream: 1
Leaked SkMemoryStream: 1
Leaked SkData: 2
Leaked ???: 8
Patch Set 1 #
Total comments: 2
Patch Set 2 : Called SkNEW instead of new #MessagesTotal messages: 3
|