0015-Fix-potential-crash-when-sending-notification-to-dea.patch 712 B

1234567891011121314151617181920212223242526
  1. From 782eccd0d1ae98cc9455d44b2aeb20c3b99879c4 Mon Sep 17 00:00:00 2001
  2. From: Gleb Pinigin <gpinigin@gmail.com>
  3. Date: Fri, 17 May 2013 23:13:06 +0700
  4. Subject: [PATCH 15/15] Fix potential crash when sending notification to
  5. deallocated object
  6. ---
  7. modules/video_output/ios2.m | 1 +
  8. 1 file changed, 1 insertion(+)
  9. diff --git a/modules/video_output/ios2.m b/modules/video_output/ios2.m
  10. index 0774550..9ecc58c 100644
  11. --- a/modules/video_output/ios2.m
  12. +++ b/modules/video_output/ios2.m
  13. @@ -398,6 +398,7 @@ static void OpenglESSwap(vlc_gl_t *gl)
  14. - (void)dealloc
  15. {
  16. + [[NSNotificationCenter defaultCenter] removeObserver:self];
  17. [_eaglContext release];
  18. [super dealloc];
  19. }
  20. --
  21. 1.7.12.4 (Apple Git-37)