All pastes #216819 Raw Edit

Unnamed

public text v1 · immutable
#216819 ·published 2006-10-23 09:23 UTC
rendered paste body
Index: main.c
===================================================================
--- main.c      (Revision 767)
+++ main.c      (Arbeitskopie)
@@ -1419,6 +1419,7 @@
     if (waitpid(f->pd,NULL,WNOHANG)!=0)
     {
        import_cache(f->progbar);
+       refresh_theme_list(NULL);
         gtk_widget_destroy(f->dialog);
         free(p);
         return FALSE;
@@ -1428,7 +1429,7 @@
 void fetch_svn()
 {
     gchar* themefetcher[] = {
-        "svn", "co", svnpath, themecache, NULL };
+        "svn", "co", g_strdup(svnpath), g_strdup(themecache), NULL };
     GtkWidget * w;
     GtkWidget * l;
     GPid pd;
@@ -1446,7 +1447,7 @@
     g_spawn_async(NULL,themefetcher,NULL,
             G_SPAWN_SEARCH_PATH | G_SPAWN_DO_NOT_REAP_CHILD,
             NULL,NULL,&pd,NULL);
-   // g_free(themefetcher[3]);
+    g_free(themefetcher[4]);
     fe->dialog=w;
     fe->progbar=l;
     fe->pd=pd;