diff options
| -rw-r--r-- | pugl/pugl_osx.m | 1 | ||||
| -rw-r--r-- | pugl/pugl_win.cpp | 1 | ||||
| -rw-r--r-- | pugl/pugl_x11.c | 1 | 
3 files changed, 3 insertions, 0 deletions
| diff --git a/pugl/pugl_osx.m b/pugl/pugl_osx.m index 1f31bdf..a585d88 100644 --- a/pugl/pugl_osx.m +++ b/pugl/pugl_osx.m @@ -515,6 +515,7 @@ puglDestroy(PuglView* view)  	if (view->impl->window) {  		[view->impl->window release];  	} +	free(view->windowClass);  	free(view->impl);  	free(view);  } diff --git a/pugl/pugl_win.cpp b/pugl/pugl_win.cpp index 251dd9b..6d4219f 100644 --- a/pugl/pugl_win.cpp +++ b/pugl/pugl_win.cpp @@ -227,6 +227,7 @@ puglDestroy(PuglView* view)  	ReleaseDC(view->impl->hwnd, view->impl->hdc);  	DestroyWindow(view->impl->hwnd);  	UnregisterClass(view->impl->wc.lpszClassName, NULL); +	free(view->windowClass);  	free(view->impl);  	free(view);  } diff --git a/pugl/pugl_x11.c b/pugl/pugl_x11.c index 8167ece..bed1512 100644 --- a/pugl/pugl_x11.c +++ b/pugl/pugl_x11.c @@ -287,6 +287,7 @@ puglDestroy(PuglView* view)  	destroyContext(view);  	XDestroyWindow(view->impl->display, view->impl->win);  	XCloseDisplay(view->impl->display); +	free(view->windowClass);  	free(view->impl);  	free(view);  	view = NULL; | 
