]> Pileus Git - ~andy/gtk/commitdiff
Minor file descriptor leak in testgtk
authorMichael J. Chudobiak <mjc@avtechpulse.com>
Sat, 11 Apr 2009 17:42:14 +0000 (13:42 -0400)
committerMichael J. Chudobiak <mjc@avtechpulse.com>
Sat, 11 Apr 2009 17:42:14 +0000 (13:42 -0400)
Added a missing fclose. Bug #578366.

demos/testgtk/main.c

index f21c0f80a873bc5af52c1e03257c0c7411dd0f95..69c872a2b690aa74afcdfd72a9bf0bbd035d3cd7 100644 (file)
@@ -189,6 +189,7 @@ load_file (const gchar *filename)
 
   gtk_text_buffer_get_bounds (source_buffer, &start, &end);
   gtk_text_buffer_apply_tag_by_name (info_buffer, "source", &start, &end);
+  fclose (file);
 }
 
 gboolean