[gnome-builder/wip/libide] libide: make sure that autoptr doesn't cleanup if we stole array



commit c2025139e41131e706263513262377540448edcc
Author: Christian Hergert <christian hergert me>
Date:   Wed Mar 11 14:08:37 2015 -0700

    libide: make sure that autoptr doesn't cleanup if we stole array

 libide/autotools/ide-makecache.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/libide/autotools/ide-makecache.c b/libide/autotools/ide-makecache.c
index bfe3b58..5554bcd 100644
--- a/libide/autotools/ide-makecache.c
+++ b/libide/autotools/ide-makecache.c
@@ -269,6 +269,7 @@ ide_makecache_get_file_targets_searched (IdeMakecache *self,
 
       g_ptr_array_add (targets, NULL);
       ret = (gchar **)g_ptr_array_free (targets, FALSE);
+      targets = NULL;
 
 #ifndef IDE_DISABLE_TRACE
       {


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