Skip to content

Commit

Permalink
HOTFIX for memory leak
Browse files Browse the repository at this point in the history
  • Loading branch information
itchix authored Jul 25, 2019
1 parent 1e339d1 commit 94c24e0
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions HGPlaceholders/Classes/Views/CollectionView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,14 @@ import UIKit
/// A collection view that allows to show easily placeholders like no results, no internet connection, etc
open class CollectionView: UICollectionView {

deinit {
defaultDelegate = nil
defaultDataSource = nil
dataSource = nil
delegate = nil
placeholderDelegate = nil
}

// MARK: - Public properties

/**
Expand Down

0 comments on commit 94c24e0

Please sign in to comment.