[vlc-commits] macosx: Clear logs once window is closed

David Fuhrmann git at videolan.org
Fri Jan 1 20:42:48 CET 2016


vlc | branch: master | David Fuhrmann <dfuhrmann at videolan.org> | Fri Jan  1 20:40:45 2016 +0100| [e7f095c2806b0349201d31fd87e9a919ae051f8e] | committer: David Fuhrmann

macosx: Clear logs once window is closed

Logs are not recorded in background, so do not retain old logs
to avoid confusion.

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

 modules/gui/macosx/DebugMessageVisualizer.m |    1 +
 1 file changed, 1 insertion(+)

diff --git a/modules/gui/macosx/DebugMessageVisualizer.m b/modules/gui/macosx/DebugMessageVisualizer.m
index aa5339a..dde5451 100644
--- a/modules/gui/macosx/DebugMessageVisualizer.m
+++ b/modules/gui/macosx/DebugMessageVisualizer.m
@@ -136,6 +136,7 @@ static void MsgCallback(void *data, int type, const vlc_log_t *item, const char
 {
     /* unsubscribe from LibVLCCore's messages */
     vlc_LogSet( VLCIntf->p_libvlc, NULL, NULL );
+    [_messageArray removeAllObjects];
 }
 
 - (IBAction)saveDebugLog:(id)sender



More information about the vlc-commits mailing list