summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWonki Kim <wonki_.kim@samsung.com>2019-02-13 10:42:24 -0500
committerChristopher Michael <cp.michael@samsung.com>2019-02-13 10:42:24 -0500
commit80b364f3928c8b986403779be665188a6762edf3 (patch)
treee5e313f0950f1244b85e45bbef439ee8c539c6b3
parent0fed1c77ae05f540fadf422b76636591fb619ae5 (diff)
ecore_evas: fix a potentional deref after null problem
Summary: this patch modify a logic to return after, failing to call eore_evas_buffer_allocfunc_new function. Reviewers: Hermet, bu5hm4n, cedric, devilhorns Reviewed By: devilhorns Subscribers: #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D7918
Diffstat (limited to '')
-rw-r--r--src/lib/ecore_evas/ecore_evas_buffer.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/lib/ecore_evas/ecore_evas_buffer.c b/src/lib/ecore_evas/ecore_evas_buffer.c
index 613f72dd37..147e09070b 100644
--- a/src/lib/ecore_evas/ecore_evas_buffer.c
+++ b/src/lib/ecore_evas/ecore_evas_buffer.c
@@ -896,7 +896,11 @@ ecore_evas_buffer_new(int w, int h)
896 ecore_evas_buffer_allocfunc_new(w, h, _ecore_evas_buffer_pix_alloc, 896 ecore_evas_buffer_allocfunc_new(w, h, _ecore_evas_buffer_pix_alloc,
897 _ecore_evas_buffer_pix_free, NULL); 897 _ecore_evas_buffer_pix_free, NULL);
898 898
899 if (!ee) ecore_event_evas_shutdown(); 899 if (!ee)
900 {
901 ecore_event_evas_shutdown();
902 return NULL;
903 }
900 904
901 ecore_evas_done(ee, EINA_TRUE); 905 ecore_evas_done(ee, EINA_TRUE);
902 906