All pastes #216820 Raw Edit

Untitled

public text v1 · immutable
#216820 ·published 2006-10-23 09:24 UTC
rendered paste body
Index: main.c
===================================================================
--- main.c      (Revision 767)
+++ main.c      (Arbeitskopie)
@@ -1419,7 +1419,9 @@
     if (waitpid(f->pd,NULL,WNOHANG)!=0)
     {
        import_cache(f->progbar);
+       refresh_theme_list(NULL);
         gtk_widget_destroy(f->dialog);
+       g_free(themecache);
         free(p);
         return FALSE;
     }
@@ -1428,7 +1430,7 @@
 void fetch_svn()
 {
     gchar* themefetcher[] = {
-        "svn", "co", svnpath, themecache, NULL };
+        g_strdup("svn"), g_strdup("co"), g_strdup(svnpath), g_strdup(themecache), NULL };
     GtkWidget * w;
     GtkWidget * l;
     GPid pd;
@@ -1446,7 +1448,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;