Skip to content

Commit

Permalink
UPDATED: Avoid dangling pointer warning
Browse files Browse the repository at this point in the history
  • Loading branch information
slsrepo committed Nov 16, 2020
1 parent 8d1e155 commit 940353a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions swift/MultiMarkdownSPM/MultiMarkdown6.swift
Original file line number Diff line number Diff line change
Expand Up @@ -163,9 +163,8 @@ public class MultiMarkdown {
let e = mmd_engine_create_with_string(source, extensions.rawValue)

var end = 0
let endPointer = UnsafeMutablePointer<Int>(mutating: &end)

let result = mmd_engine_has_metadata(e, endPointer)
let result = mmd_engine_has_metadata(e, &end)

mmd_engine_free(e, true)

Expand Down

0 comments on commit 940353a

Please sign in to comment.