[totem] main: Fix leak handling the local command-line



commit afc74459dc3b92bdf5e441303c719a9b07490707
Author: Bastien Nocera <hadess hadess net>
Date:   Thu Mar 29 00:45:05 2012 +0200

    main: Fix leak handling the local command-line

 src/totem-object.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/totem-object.c b/src/totem-object.c
index 1636736..177f5ae 100644
--- a/src/totem-object.c
+++ b/src/totem-object.c
@@ -170,6 +170,9 @@ totem_object_local_command_line (GApplication              *application,
 	        goto bail;
 	}
 
+	g_strfreev (optionstate.filenames);
+	optionstate.filenames = NULL;
+
 	*exit_status = 0;
 bail:
 	g_option_context_free (context);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]