[gnome-autoar] Remove extra g_free and g_object_unref, which causes segmentation fault
- From: Ting-Wei Lan <lantw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-autoar] Remove extra g_free and g_object_unref, which causes segmentation fault
- Date: Fri, 30 Aug 2013 10:52:34 +0000 (UTC)
commit 461ee26ec384bbf8128c2b7d1dec7bea823156d5
Author: Ting-Wei Lan <lantw44 gmail com>
Date: Fri Aug 30 18:51:32 2013 +0800
Remove extra g_free and g_object_unref, which causes segmentation fault
gnome-autoar/autoar-create.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gnome-autoar/autoar-create.c b/gnome-autoar/autoar-create.c
index 92a5f70..4d1d856 100644
--- a/gnome-autoar/autoar-create.c
+++ b/gnome-autoar/autoar-create.c
@@ -1132,7 +1132,7 @@ autoar_create_new (AutoarPref *arpref,
g_return_val_if_fail (output != NULL, NULL);
va_start (ap, output);
- strv = g_ptr_array_new_with_free_func (g_free);
+ strv = g_ptr_array_new_with_free_func (NULL);
while ((str = va_arg (ap, char*)) != NULL)
g_ptr_array_add (strv, str);
g_ptr_array_add (strv, NULL);
@@ -1158,7 +1158,7 @@ autoar_create_new_file (AutoarPref *arpref,
g_return_val_if_fail (output_file != NULL, NULL);
va_start (ap, output_file);
- filev = g_ptr_array_new_with_free_func (autoar_common_g_object_unref);
+ filev = g_ptr_array_new_with_free_func (NULL);
while ((file = va_arg (ap, GFile*)) != NULL)
g_ptr_array_add (filev, file);
g_ptr_array_add (filev, NULL);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]