demos: c_simple: Fix segfault when x11 not compiled in
commit0dcd3ddb50bb7ee9fab8ed8b4a21bb9a909d4940
authorCyril Hrubis <metan@ucw.cz>
Fri, 3 May 2013 11:23:12 +0000 (3 13:23 +0200)
committerCyril Hrubis <metan@ucw.cz>
Fri, 3 May 2013 12:21:14 +0000 (3 14:21 +0200)
treed8887ca9b7b8632e9676d850012e8e986059587a
parent2b791b83c7976635a33543e76e1259c5dfb6454c
demos: c_simple: Fix segfault when x11 not compiled in

* This fixes segfault when we are not able to initialize X11 backend.

* Also changes GP_BackendExit() to be no-op for NULL pointer.

Signed-off-by: Cyril Hrubis <metan@ucw.cz>
demos/c_simple/x11_windows.c
include/backends/GP_Backend.h