[vlc-commits] macosx: Use assign for the vlc_renderer_item_t pointer in VLCRendererItem

Marvin Scholz git at videolan.org
Mon Dec 5 14:26:11 CET 2016


vlc | branch: master | Marvin Scholz <epirat07 at gmail.com> | Mon Dec  5 14:25:11 2016 +0100| [be0e8244040374f0ce84765e18fc5ad49f9de7d0] | committer: Marvin Scholz

macosx: Use assign for the vlc_renderer_item_t pointer in VLCRendererItem

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=be0e8244040374f0ce84765e18fc5ad49f9de7d0
---

 modules/gui/macosx/VLCRendererItem.h | 2 +-
 modules/gui/macosx/VLCRendererItem.m | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/modules/gui/macosx/VLCRendererItem.h b/modules/gui/macosx/VLCRendererItem.h
index d65c3b4..47f8072 100644
--- a/modules/gui/macosx/VLCRendererItem.h
+++ b/modules/gui/macosx/VLCRendererItem.h
@@ -42,7 +42,7 @@
 /**
  The underlying \c vlc_renderer_item_t item
  */
- at property (readonly) vlc_renderer_item_t* rendererItem;
+ at property (readonly, assign) vlc_renderer_item_t* rendererItem;
 
 /**
  The name of the renderer item
diff --git a/modules/gui/macosx/VLCRendererItem.m b/modules/gui/macosx/VLCRendererItem.m
index f9ebe69..4c90fa4 100644
--- a/modules/gui/macosx/VLCRendererItem.m
+++ b/modules/gui/macosx/VLCRendererItem.m
@@ -44,6 +44,7 @@
 - (void)dealloc
 {
     vlc_renderer_item_release(_rendererItem);
+    _rendererItem = nil;
 }
 
 - (NSString*)name



More information about the vlc-commits mailing list