diff --git a/src/gtk/dcclient.cpp b/src/gtk/dcclient.cpp index 13c896c00e..84b8ede60f 100644 --- a/src/gtk/dcclient.cpp +++ b/src/gtk/dcclient.cpp @@ -203,7 +203,7 @@ static void wxInitGCPool() static void wxCleanUpGCPool() { - for (int i = 0; i < GC_POOL_SIZE; i++) + for (int i = 0; i < wxGCPoolSize; i++) { if (wxGCPool[i].m_gc) gdk_gc_unref( wxGCPool[i].m_gc ); diff --git a/src/gtk1/dcclient.cpp b/src/gtk1/dcclient.cpp index 13c896c00e..84b8ede60f 100644 --- a/src/gtk1/dcclient.cpp +++ b/src/gtk1/dcclient.cpp @@ -203,7 +203,7 @@ static void wxInitGCPool() static void wxCleanUpGCPool() { - for (int i = 0; i < GC_POOL_SIZE; i++) + for (int i = 0; i < wxGCPoolSize; i++) { if (wxGCPool[i].m_gc) gdk_gc_unref( wxGCPool[i].m_gc );