All pastes #21099 Raw Edit

Mine

public text v1 · immutable
#21099 ·published 2005-08-25 12:44 UTC
rendered paste body
Index: src/unix/fontutil.cpp
===================================================================
RCS file: /pack/cvsroots/wxwidgets/wxWidgets/src/unix/fontutil.cpp,v
retrieving revision 1.58
diff -u -r1.58 fontutil.cpp
--- src/unix/fontutil.cpp       2005/08/23 00:03:27     1.58
+++ src/unix/fontutil.cpp       2005/08/25 12:43:34
@@ -149,7 +149,7 @@
     else
     {
         PangoFontFamily **families;
-        PangoFontFamily  *family;
+        PangoFontFamily  *family = NULL;
         int n_families;
         pango_context_list_families(
 #ifdef __WXGTK20__
@@ -167,6 +167,9 @@
                 break;
             }
         }
+
+        if (!family)
+          return ret;

         g_free(families);