Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Register
  • Sign in
  • VLCKit VLCKit
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Graph
    • Compare revisions
  • Issues 114
    • Issues 114
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 4
    • Merge requests 4
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Artifacts
    • Schedules
  • Deployments
    • Deployments
    • Releases
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • VideoLANVideoLAN
  • VLCKitVLCKit
  • Merge requests
  • !236

VLCLibrary: add autoreleasepool for NSString

  • Review changes

  • Download
  • Patches
  • Plain diff
Merged Alexandre Janniaux requested to merge alexandre-janniaux/VLCKit:autorelease-logs/1 into master Dec 14, 2022
  • Overview 1
  • Commits 1
  • Pipelines 1
  • Changes 1

[NSString stringWithUTF8String] is allocated strings from the current autorelease pool, but none are being defined here and from the call stack. Since we wrap the strings in another object not allocated in the autorelease pool, we can just locally setup the autoreleasepool while creating the object.

Fix memory leaks when logs are going on.

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: autorelease-logs/1

VideoLAN code repository instance