Fix crasher bug by initializing elementary 16/2816/1
authorRusty Lynch <rusty.lynch@intel.com>
Wed, 6 Mar 2013 23:12:35 +0000 (15:12 -0800)
committerRusty Lynch <rusty.lynch@intel.com>
Wed, 6 Mar 2013 23:22:12 +0000 (15:22 -0800)
After updating webkit-efl, this app started to segfault in
elm_config_mirrored_get().  By calling elm_init() at the start
of the app then we no longer see this crash.

Makefile
packaging/webskeleton.spec
webskeleton.c

index 44c80b8..ab36e11 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,5 @@
 webskeleton: webskeleton.c
-       gcc -o webskeleton webskeleton.c `pkg-config --cflags --libs ecore ecore-evas evas eina ewebkit2`
+       gcc -o webskeleton webskeleton.c `pkg-config --cflags --libs ecore ecore-evas evas eina ewebkit2 elementary`
 
 install: webskeleton
        mkdir -p ${DESTDIR}/usr/bin
index 2a86a56..463028a 100644 (file)
@@ -13,6 +13,7 @@ BuildRequires: pkgconfig(ecore)
 BuildRequires: pkgconfig(evas)
 BuildRequires: pkgconfig(eina)
 BuildRequires: pkgconfig(ewebkit2)
+BuildRequires: pkgconfig(elementary)
 
 %description
 Webskeleton application container
index fb3ec96..394edff 100644 (file)
@@ -208,6 +208,8 @@ int main(int argc, char *argv[])
 
     if (!ecore_evas_init())
         return EXIT_FAILURE;
+    if (!elm_init())
+        return EXIT_FAILURE;
 
     static struct option options[] = {
         { "help",      no_argument,       NULL, 'h' },