[Xfce4-commits] <midori:master> Don't free extension_path in extension test before using it
Christian Dywan
noreply at xfce.org
Sat Dec 15 20:20:03 CET 2012
Updating branch refs/heads/master
to 54632190c701a57e622a0b40c5f3e755cc44b86b (commit)
from bae4ccba8e57d20adf1bd3339dd804b39ab4ce22 (commit)
commit 54632190c701a57e622a0b40c5f3e755cc44b86b
Author: Christian Dywan <christian at twotoasts.de>
Date: Sat Dec 15 20:17:00 2012 +0100
Don't free extension_path in extension test before using it
tests/extensions.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/tests/extensions.c b/tests/extensions.c
index 33f1173..b64726f 100644
--- a/tests/extensions.c
+++ b/tests/extensions.c
@@ -216,7 +216,6 @@ main (int argc,
{
gchar* extension_path = midori_paths_get_lib_path (PACKAGE_NAME);
GDir* extension_dir = g_dir_open (extension_path, 0, NULL);
- g_free (extension_path);
g_assert (extension_dir != NULL);
/* We require that extensions can be loaded repeatedly */
@@ -224,6 +223,7 @@ main (int argc,
extension_load (extension_path, extension_dir);
g_dir_close (extension_dir);
+ g_free (extension_path);
}
return g_test_run ();
More information about the Xfce4-commits
mailing list