summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTing-Wei Lan <lantw44@gmail.com>2013-08-30 18:51:32 +0800
committerLAN-TW <lantw44@gmail.com>2013-08-30 18:51:32 +0800
commit461ee26ec384bbf8128c2b7d1dec7bea823156d5 (patch)
tree57c771848828b6dcc2e4577528f4411dab4ffea7
parentaa3e62c09703f1f67b695eeca5cbf3e7f30f3ce0 (diff)
downloadgsoc2013-libgnome-autoar-461ee26ec384bbf8128c2b7d1dec7bea823156d5.tar
gsoc2013-libgnome-autoar-461ee26ec384bbf8128c2b7d1dec7bea823156d5.tar.gz
gsoc2013-libgnome-autoar-461ee26ec384bbf8128c2b7d1dec7bea823156d5.tar.bz2
gsoc2013-libgnome-autoar-461ee26ec384bbf8128c2b7d1dec7bea823156d5.tar.lz
gsoc2013-libgnome-autoar-461ee26ec384bbf8128c2b7d1dec7bea823156d5.tar.xz
gsoc2013-libgnome-autoar-461ee26ec384bbf8128c2b7d1dec7bea823156d5.tar.zst
gsoc2013-libgnome-autoar-461ee26ec384bbf8128c2b7d1dec7bea823156d5.zip
Remove extra g_free and g_object_unref, which causes segmentation fault
-rw-r--r--gnome-autoar/autoar-create.c4
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);