diff options
author | Christian Grothoff <christian@grothoff.org> | 2009-11-16 12:33:54 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2009-11-16 12:33:54 +0000 |
commit | 83db6d0c9c4d4d02179f5cab15f8ec7b41a6cdaa (patch) | |
tree | 1e2a52e2a8bc2be8530c9abddf7bea1764a45cff | |
parent | 145508fd5926de6ae41d1e2d50a361b1946139ae (diff) | |
download | gnunet-gtk-83db6d0c9c4d4d02179f5cab15f8ec7b41a6cdaa.tar.gz gnunet-gtk-83db6d0c9c4d4d02179f5cab15f8ec7b41a6cdaa.zip |
fix use after free
-rw-r--r-- | src/common/helper.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/helper.c b/src/common/helper.c index 987155d6..2f7b82bd 100644 --- a/src/common/helper.c +++ b/src/common/helper.c | |||
@@ -550,7 +550,6 @@ GNUNET_GTK_display_daemon_status (GNUNET_GTK_STATUS status, | |||
550 | #else | 550 | #else |
551 | finalPath = GNUNET_strdup (dataDir); | 551 | finalPath = GNUNET_strdup (dataDir); |
552 | #endif | 552 | #endif |
553 | GNUNET_free (instDir); | ||
554 | g_free (dataDir); | 553 | g_free (dataDir); |
555 | iconSource = gtk_icon_source_new (); | 554 | iconSource = gtk_icon_source_new (); |
556 | 555 | ||
@@ -562,6 +561,7 @@ GNUNET_GTK_display_daemon_status (GNUNET_GTK_STATUS status, | |||
562 | gtk_icon_set_add_source (iconSet, iconSource); | 561 | gtk_icon_set_add_source (iconSet, iconSource); |
563 | iconPath = g_build_filename (instDir, "share", "gnunet-gtk", | 562 | iconPath = g_build_filename (instDir, "share", "gnunet-gtk", |
564 | "gnunet-gtk-status-connected.png", NULL); | 563 | "gnunet-gtk-status-connected.png", NULL); |
564 | GNUNET_free (instDir); | ||
565 | absPath = GNUNET_expand_file_name(NULL, iconPath); | 565 | absPath = GNUNET_expand_file_name(NULL, iconPath); |
566 | gtk_icon_source_set_filename (iconSource, absPath); | 566 | gtk_icon_source_set_filename (iconSource, absPath); |
567 | GNUNET_free(absPath); | 567 | GNUNET_free(absPath); |