[vlc-commits] telepathy: Fix memleak
Mirsal Ennaime
git at videolan.org
Wed Jun 8 21:39:41 CEST 2011
vlc | branch: master | Mirsal Ennaime <mirsal at mirsal.fr> | Wed Jun 8 14:01:15 2011 +0200| [b418436b45dc741c11ca116fdca547a139b917fb] | committer: Mirsal Ennaime
telepathy: Fix memleak
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=b418436b45dc741c11ca116fdca547a139b917fb
---
modules/misc/notify/telepathy.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/modules/misc/notify/telepathy.c b/modules/misc/notify/telepathy.c
index 6ef4586..d73cf06 100644
--- a/modules/misc/notify/telepathy.c
+++ b/modules/misc/notify/telepathy.c
@@ -257,6 +257,9 @@ static int SendToTelepathy( intf_thread_t *p_intf, const char *psz_msg )
p_reply = dbus_connection_send_with_reply_and_block( p_conn, p_msg,
50, &error ); /* blocks 50ms maximum */
+ if( dbus_error_is_set( &error ) )
+ dbus_error_free( &error );
+
dbus_message_unref( p_msg );
if( p_reply == NULL )
{ /* MC is not active, or too slow. Better luck next time? */
More information about the vlc-commits
mailing list