Sophie

Sophie

distrib > Mandriva > 2009.1 > i586 > media > main-release-src > by-pkgid > cb0c32ba8d17ef27100071c00bc36b17 > files > 2

gstreamer0.10-0.10.22-2mdv2009.1.src.rpm

From a626dff72c6dea80bfab31cf1810db724bc45afb Mon Sep 17 00:00:00 2001
From: Jan Schmidt <thaytan@noraisin.net>
Date: Thu, 29 Jan 2009 15:49:24 +0000
Subject: Make sure to take a copy of the strings we're going to free later.

---
diff --git a/gst/gstregistrybinary.c b/gst/gstregistrybinary.c
index 7c2ecfc..6854544 100644
--- a/gst/gstregistrybinary.c
+++ b/gst/gstregistrybinary.c
@@ -573,13 +573,13 @@ gst_registry_binary_save_plugin_dep (GList ** list, GstPluginDep * dep)
   ed->stat_hash = dep->stat_hash;
 
   for (s = dep->env_vars; s != NULL && *s != NULL; ++s, ++ed->n_env_vars)
-    gst_registry_binary_save_string (list, *s);
+    gst_registry_binary_save_string (list, g_strdup (*s));
 
   for (s = dep->paths; s != NULL && *s != NULL; ++s, ++ed->n_paths)
-    gst_registry_binary_save_string (list, *s);
+    gst_registry_binary_save_string (list, g_strdup (*s));
 
   for (s = dep->names; s != NULL && *s != NULL; ++s, ++ed->n_names)
-    gst_registry_binary_save_string (list, *s);
+    gst_registry_binary_save_string (list, g_strdup (*s));
 
   *list = g_list_prepend (*list, chk);
 
--
cgit v0.8.2